
Helge Bahmann wrote:
Am Monday 30 November 2009 17:33:03 schrieb Zachary Turner:
On Sun, Nov 29, 2009 at 4:49 PM, Helge Bahmann <hcb@chaoticmind.net> wrote:
It contains some entirely untested support for building implementations from CAS operations on other systems
okay this was badly worded -- the infrastructure for building atomic operations from just a single platform-specific CAS operation is finished and well tested, it is just that I do not have every conceivable compiler/os combination available to test if some particular platform-CAS works (or even compiles). In particular, I have no windows system available to me for testing, so things will take some time as I constantly have to ask others helping me out for implementation and/or testing.
If however, by sheer luck, I have managed to hit the right ifdef/include combination required for _InterlockedCompareExchange on the first attempt and without any compile-testing, then it will compile and run correctly already.
FYI, there is boost/detail/interlocked.hpp, which adds quite a bit of compatibility among different Windows versions. It supports _Interlocked intrinsics, as well as native API calls.