
8 Jan
2013
8 Jan
'13
1:38 p.m.
For the spinlocks, the way forward is to use std::atomic_flag, and much of the other stuff is also obsoleted by the C++11 atomics. Unfortunately, I was unable to get yield(k) into the standard. [CCing Tim duet to Boost.Atomic/Lockfree mention]
We need to be compatible with C++03 compilers so I guess maybe Boost.Atomic/Boost.Lockfree might be a good candidates for these utilities.
i think it is a good idea to use boost/std atomics. smart_ptr has support for much more architectures, though ... it would be best to integrate all that architectures into boost.atomic ... cheers, tim