Boost Users :
Subject: Re: [Boost-users] Boost Atomic ?
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2011-06-20 07:57:03
Tim Blechmann <tim_at_[hidden]> writes:
>>> 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
-- 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net