Re: [Valgrind-users] cannot get Helgrind/DRD work with C++11 thread

2014-06-09 Thread Bart Van Assche
On 06/09/14 08:51, Dave Ohlsson wrote: int i = 0; int main() { std::thread t1( []() { i = 1; } ); std::thread t2( []() { i = 2; } ); t1.join(); t2.join(); std::cerr i = i std::endl; return 0; } [other code as before] /updated part of main.cc The

Re: [Valgrind-users] cannot get Helgrind/DRD work with C++11 thread

2014-06-07 Thread Bart Van Assche
On 06/06/14 09:33, Dave Ohlsson wrote: However, the code you posted, and the included comments, match pretty much what I already did. Hello Dave, I have updated the C++11 instructions in the DRD manual and also the drd/tests/std_thread.cpp test program. The DRD manual can be generated as

Re: [Valgrind-users] cannot get Helgrind/DRD work with C++11 thread

2014-06-06 Thread Bart Van Assche
On 06/06/14 09:33, Dave Ohlsson wrote: However, the code you posted, and the included comments, match pretty much what I already did. I'm afraid that means that the instructions for shared pointer annotation in the libstdc++ manual are still broken. See also

[Valgrind-users] cannot get Helgrind/DRD work with C++11 thread

2014-06-05 Thread Dave Ohlsson
Hi, I posted yesterday a question to stackoverflow regarding problems I am having with Helgrind/DRD and C++11 thread: http://stackoverflow.com/questions/24060626/cannot-get-helgrind-drd-work-with-c11-thread but got no answer. Any help here? -- dave