Sounds like they are using a simple hack in the form of external function
calls. Well, link-time optimizations aside, this should work. Read the brief
introduction to this matter:
http://appcore.home.comcast.net
" The lock-free queue does not rely on any "atomic operations". It uses
simple loads and stores guarded with memory barriers. All of its
"critical-sequences" are contained in externally assembled functions:
http://groups.google.com/group/comp.programming.threads/msg/423df394a0370fa6
in order to prevent a rouge C compiler from reordering anything that would
corrupt the data-structure". Link-time optimizations can potentially break
this.