-
3 votesanswersviews
“阻塞”主线程(dispatch_get_main_queue())和(或不)定期运行currentRunLoop - 有什么区别?
我有以下代码: - (void)test_with_running_runLoop { dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); NSTimeInterval checkEveryInterval = 0.05; NSLog(@"Is main queue? : %d"...