dispatch_semaphore_taSemaphore=dispatch_semaphore_create(1);dispatch_semaphore_wait(aSemaphore,DISPATCH_TIME_FOREVER);dispatch_release(aSemaphore);当程序运行到dispatch_release(aSemaphore)时,会导致“EXC_BAD_INSTRUCTION”,然后崩溃。为什么? 最佳答案 我试过这段代码,它确实死于非法指令。所以我做了一些挖掘,发现它在_dispatch_sema
dispatch_semaphore_taSemaphore=dispatch_semaphore_create(1);dispatch_semaphore_wait(aSemaphore,DISPATCH_TIME_FOREVER);dispatch_release(aSemaphore);当程序运行到dispatch_release(aSemaphore)时,会导致“EXC_BAD_INSTRUCTION”,然后崩溃。为什么? 最佳答案 我试过这段代码,它确实死于非法指令。所以我做了一些挖掘,发现它在_dispatch_sema