function calls of OSAtomic replaced with macros