
简单记录一下GCD信号量的使用。
1 |
dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); |
执行结果:
1 |
2017-08-20 15:45:30.747164+0800 OC[48972:1332777] 等待2秒结束 |

简单记录一下GCD信号量的使用。
1 |
dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); |
执行结果:
1 |
2017-08-20 15:45:30.747164+0800 OC[48972:1332777] 等待2秒结束 |
近期评论