
Tim Blechmann
unfortunately i do not know any compiler which already implements c++0x atomics, so if your platform is supported by boost.atomic, it is probably the best solution until real c++0x atomics are widely available ...
FYI: My commercial just::thread implementation of C++0x threads provides C++0x atomics. It is available for gcc 4.5.2/mingw, Visual Studio 2005 and later, gcc 4.3/4.4/4.5/4.6 on x86 Linux and MacPorts gcc 4.3/4.4/4.5 for 32-bit x86 MacOSX.
... well this is neither an option for boost.lockfree ... nor for any open source project ...
You can't rely on it being present, that is true. You could use it if it was, though, with either a user macro or some detection logic to make the choice. Anthony -- Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/ just::thread C++0x thread library http://www.stdthread.co.uk Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976