13 Mar
2015
13 Mar
'15
8:01 a.m.
On Friday, March 13, 2015 02:54 PM, Vicente J. Botet Escriba wrote:
Le 13/03/15 07:49, Vicente J. Botet Escriba a écrit :
Other report this issue
WARNING: ThreadSanitizer: data race (pid=4677) ....
Location is global 'std::__1::cout' of size 160 at 0x7f6d813c1b40 (libc++.so.1+0x0000002b8bd8)
See the full report here [1].
The test is using std::cout in a multi-threaded env.
Is this telling that the standard library has a data race?
std::cout isn't thread safe, is it? And boost test isn't thread safe either. I think it means you have to dispatch the BOOST_CHECK on the main thread. Ben