[转]深入浅出 Cocoa 多线程编程之 block 与 dispatch quene
摘要:
转自:http://www.cppblog.com/kesalin/archive/2011/08/26/dispatch_queue_block.htmlblock 是 Apple 在 GCC 4.2 中扩充的新语法特性,其目的是支持多核并行编程。我们可以将 dispatch_queue 与 block 结合起来使用,方便进行多线程编程。本文源代码下载:点击下载1,实验工程准备在 XCode 4.0 中,我们建立一个 Mac OS X Application 类型的 Command Line Tool,在 Type 里面我们选择 Foundation 就好,工程名字暂且为 StudyBloc 阅读全文
posted @ 2012-07-12 17:18 myprecious 阅读(156) 评论(0) 推荐(0) 编辑