Barrier blocks only behave specially when submitted to queues created with
the DISPATCH_QUEUE_CONCURRENT attribute
这是dispatch_barrier_async api中给的解释。只有是自己创建的并发队列,栅栏才有作用,否则就和 dispatch_async一样的作用了。
iOS 多线程:「GCD」详尽总结本文首发于我的个人博客:「程序员充电站」[https://itcharge.cn]文章链接:「传送门」[https://itcharge.cn/ios-complete-le...