Barrier blocks only behave specially when submitted to queues created with
the DISPATCH_QUEUE_CONCURRENT attribute
這是dispatch_barrier_async api中給的解釋诫钓。只有是自己創(chuàng)建的并發(fā)隊列,柵欄才有作用,否則就和 dispatch_async一樣的作用了趋翻。
iOS 多線程:「GCD」詳盡總結(jié)本文首發(fā)于我的個人博客:「程序員充電站」[https://itcharge.cn]文章鏈接:「傳送門」[https://itcharge.cn/ios-complete-le...