|
Boost : |
Subject: Re: [boost] clang-3.6 thread sanitizer complains on shared_ptroperations
From: Gaetano Mendola (mendola_at_[hidden])
Date: 2015-01-21 18:00:15
On 01/21/2015 07:38 PM, Peter Dimov wrote:
> Gaetano Mendola wrote:
>
>> Same issue with -DBOOST_SP_USE_STD_ATOMIC however with -DBOOST_SP_USE_PTHREADS the warning disappears.
>>
>> Annoying.
>
> If it persists when boost:: use is replaced with std::thread, std::mutex and std::shared_ptr, it should be obvious that it's not our fault. :-)
Replaced all the boost with the "equivalent" in std:
compiled with:
clang++-3.6 -std=c++11 -g main_std.cpp -fsanitize=thread
and clang++ *doesn't* complain. So either is our fault or std is doing something different?
-- cpp-today.blogspot.it --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk