Boost logo

Boost :

Subject: [boost] [atomic] lockfree failure on msvc 64-bit
From: Christoph Macheiner (christoph.macheiner_at_[hidden])
Date: 2012-08-27 13:01:12


As indicated by
http://www.boost.org/development/tests/trunk/developer/output/cm_x64-boost-bin-v2-libs-atomic-test-lockfree-test-msvc-11-0-debug-address-model-64-link-static-threading-multi.html.

In boost/atomic/detail/interlocked.hpp, BOOST_ATOMIC_LLONG_LOCK_FREE must be
defined to 2 if _WIN64 is defined (cas64strong.hpp is included afterwards).
Because the library has not yet been released, I didn't bother to create a
ticket and because the change is so trivial I didn't create a patch as well
(if either or both is required or wanted, please let me know).

Question: If I recall correctly, long long can be made lockfree also in
32-bit. If I am right, is there a reason why it hasn't been done?

Thanks.
--Christoph.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk