by asarazan · 13y ago · 0 comments
Obviously this can still be useful in read-heavy systems where the lock has to be held for long spans, but for our synchronized collections, we switched to std::mutex, which was massively faster.
Its also very flexible, as you can do `dispatch_sync` if you need a synchronous fetch of the resource or use callback blocks to go as async as possible.
Then again, if you can do things like background non-essential operations, then the higher-level benefits can probably outweigh that.