Boost logo

Boost :

Subject: Re: [boost] clang-3.6 thread sanitizer complains on shared_ptroperations
From: Peter Dimov (lists_at_[hidden])
Date: 2015-01-21 14:28:23

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.

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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at