MacOSX

OSAtomic

 * http://www.mikeash.com/pyblog/friday-qa-2011-03-04-a-tour-of-osatomic.html
 * http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/libkern/libkern/OSAtomic.h
 * http://cocoadev.com/index.pl?OSAtomic
 * http://stackoverflow.com/questions/4862308/interlocked-operations-in-ios
 * http://developer.apple.com/library/ios/#DOCUMENTATION/System/Conceptual/ManPages_iPhoneOS/man3/atomic.3.html