Barrier operations in NSOperationQueue
How can we implement dispatch_barrier_async 's equivalent behavior using NSOperationQueue or any user-defined data-structure based on NSOperationQueue ? The requirement is, whenever a barrier operation is submitted it should wait until all non-barrier operations submitted earlier finish their execution and blocks other operations submitted after that. Non-barrier operations should be able to perform concurrently. Barrier operations should execute serially. NB: Not using GCD ,as it doesn't provide(or atleast difficult) much access over the operations, like cancelling single operation, etc. Clay