Singleton
文章平均质量分 84
chuanyituoku
这个作者很懒,什么都没留下…
展开
-
Effective Objective-C 2.0: Item 45: Use dispatch_once for Thread-Safe Single-Time Code Execution
Item 45: Use dispatch_once for Thread-Safe Single-Time Code ExecutionThe Singleton design pattern—no stranger in the Objective-C world—is usually achieved through a class method called something l原创 2013-12-14 14:29:26 · 1352 阅读 · 0 评论 -
APIs to control the tasks in the dispatch queues.
Controlling Dispatch QueuesGCD also provides many useful APIs to control the tasks in the dispatch queues. Let’s see the APIs one by one to explore how GCD is so powerful.dispatch_set_target_que原创 2013-12-21 22:38:17 · 1618 阅读 · 0 评论