If I have something like this...
volatile long something_global = 0; long some_public_func() { return something_global++; }
Would it b
Volatile just prevents optimizations, but atomicity needs more. In x86, instructions must be preceeded by a LOCK prefix, in MIPS the RMW cycle must be surrounded by an LL/SC construct, ...