
21 Jan
2015
21 Jan
'15
7:28 p.m.
Gaetano Mendola wrote:
Same issue with -DBOOST_SP_USE_STD_ATOMIC however with -DBOOST_SP_USE_PTHREADS the warning disappears.
One more thing to try, I suppose, is -DBOOST_SP_USE_STD_ATOMIC with libc++ instead of libstdc++. Thread sanitizer is supposed to understand the __c11 built-ins and I expect libc++'s std::atomic to use them. https://code.google.com/p/thread-sanitizer/wiki/AtomicOperations I was going to implement a version of sp_counted_base using the __c11 built-ins and make it default on Clang, but never got around to it.