dispatch_semaphore_t aSemaphore = dispatch_semaphore_create(1);
dispatch_semaphore_wait(aSemaphore, DISPATCH_TIME_FOREVER);
dispatch_release(aSemaphore);
< /code>
Когда программа работает до dispatch_release (asemaphore) < /strong>, она вызовет "Exc_bad_instruction", а затем сбой. Почему?
Подробнее здесь: https://stackoverflow.com/questions/828 ... nstruction