- 博客(2)
- 收藏
- 关注

原创 GCD系列:代码块(dispatch_block)
dispatch_block最显著的功能就是可以取消执行的代码块基本函数void dispatch_block_perform(dispatch_block_flags_t flags, DISPATCH_NOESCAPE dispatch_block_t block); long dispatch_block_wait(dispatch_block_t block, dispatc
2017-02-26 21:51:56
1799
原创 GCD系列:信号量(semaphore)
dispatch_semaphore_t dispatch_semaphore_create(long value); dispatch_semaphore_wait(dispatch_semaphore_t sema, dispatch_time_t timeout); dispatch_semaphore_signal(dispatch_semaphore_t dsema); iOS 信号量 semaphore
2017-02-23 23:28:42
1098
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人