摘要: 以下代码会引起死锁 1 dispatch_block_t block = ^{ 2 for (int i = 0; i < 100; i++) { 3 NSLog(@"dispatch_sync:%d", i); 4 } 5 }; 6 7 dispatch_queue_t queue = dispatch_queue_create("FIFO.QUEQE", 0); 8 dispatch_async(queue, block); 9 10 NSLog(@"finish dispatch_asyn... 阅读全文
posted @ 2013-09-02 13:34 Kalou 阅读(426) 评论(0) 推荐(0) 编辑