
8 Jan
2013
8 Jan
'13
6:10 p.m.
Tim Blechmann wrote:
Clang has std::atomic though, doesn't it? It probably supports the
__sync intrinsics as well.
Actually, it seems to support the even better __atomic intrinsics:
http://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html Also here: http://libcxx.llvm.org/atomic_design_a.html
that's libcxx, which is not available on osx before 10.7 ...
The header <atomic> is part of libc++, but the intrinsics are not. It seems that they have been renamed to have a __c11 prefix though. No idea if the old names still work, or if the intrinsics work in C++03 mode.