Are there interlocked(atomic) operations in iOS SDK?
I need interlocked increment\\decrement and interlocked comparsion.
*UPDATE: * My main proble
Update: Language level atomics under C11 and C++11 are now available.
You can simply declare _Atomic(int) a;.
A more detailed introduction.
atomic operations and their documentation can be found in libkern/OSAtomic.h. an overview can be found under man atomic.
as well, you will likely find C11 and C++11 language/library support very soon.