You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We shouldn't be going through the overhead of creating a DispatchWorkItem (and calling dispatch_block_create_with_qos() just to submit a barrier block to a queue. In the case of queue.async(flags: .barrier, execute: ...) we should just call through to dispatch_barrier_async().
Not only that, but according to the code, on OS X 10.9 or iOS 7, queue.async(flags: .barrier) will completely ignore the flags, causing the code to submit a non-barrier block.
The text was updated successfully, but these errors were encountered:
Environment
swift-DEVELOPMENT-SNAPSHOT-2016-07-29-a-139-g6b1210e
Additional Detail from JIRA
md5: a8c76b3235340891e802dd887881b85b
Issue Description:
We shouldn't be going through the overhead of creating a
DispatchWorkItem
(and callingdispatch_block_create_with_qos()
just to submit a barrier block to a queue. In the case ofqueue.async(flags: .barrier, execute: ...)
we should just call through todispatch_barrier_async()
.Not only that, but according to the code, on OS X 10.9 or iOS 7,
queue.async(flags: .barrier)
will completely ignore the flags, causing the code to submit a non-barrier block.The text was updated successfully, but these errors were encountered: