Using Atomics to Get Rid of @synchronized

Bruno de Carvalho (tweet, comments): This post talks about the use of OS low level atomic functions (compare-and-swap, fetch-and-increment) to achieve both wait and lock free, thread-safe concurrent algorithms in your iOS/OSX apps. It introduces a few classes that abstract away the gory details of some of the atomic functions made available by libkern/OSAtomic.h into … Continue reading Using Atomics to Get Rid of @synchronized