On Mar 3, 2007, at 3:51 AM, Pavel Cahyna wrote: > Doesn't gcc provide what we need? > > http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Atomic-Builtins.html The API is not rich enough, IMO. And it needs to work on platforms where GCC does not implement the builtins. -- thorpej