------- Comment #4 from bart dot vanassche at gmail dot com 2009-06-07 06:52 ------- (In reply to comment #3) > Except this is a false positive as thread 4 is not created when the thread 2 > writes to *thr. It looks like valgrind does not know what is happening here > really.
I'm not sure that we both did interpret the above information in the same way. What makes you think that thread 4 was not yet created at the time thread 2 wrote to *thr ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40362