> not sure what you mean, but on sparcs, int writes are not atomic unless > you only use the lower 24 bits.
right, this is exactly the point! 32 bits int might be atomic on a certain platform, but i have no idea about many others. in the meantime, a part from joq suggestion of LFDS, and niklas mention of qt-core libs, i also came accross th glib atomic operations http://developer.gnome.org/doc/API/2.0/glib/glib-Atomic-Operations.html and the MacOSX atomic functions as in CarbonCore/DriverSynchronization.h maarten
