[Bug libstdc++/55471] c++ mutex does not work as expected

2012-11-26 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug libstdc++/55471] c++ mutex does not work as expected

2012-11-26 Thread gustavo at atc dot ugr.es
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471 gustavo changed: What|Removed |Added Status|RESOLVED|NEW Resolution|INVALID

[Bug libstdc++/55471] c++ mutex does not work as expected

2012-11-26 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug libstdc++/55471] c++ mutex does not work as expected

2012-11-26 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471 --- Comment #5 from Jonathan Wakely 2012-11-26 19:24:38 UTC --- Almost certainly what happens is that the mutex m gets destroyed when returning from main, but there are threads still using it and so they can no longer lock it. It's unde

[Bug libstdc++/55471] c++ mutex does not work as expected

2012-11-26 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471 --- Comment #4 from Jonathan Wakely 2012-11-26 19:23:22 UTC --- If you change the code to join the threads instead of leaving them running when the program exits then the output is correct. #include #include #include #include s

[Bug libstdc++/55471] c++ mutex does not work as expected

2012-11-26 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471 Jonathan Wakely changed: What|Removed |Added Status|WAITING |NEW Host|fedora

[Bug libstdc++/55471] c++ mutex does not work as expected

2012-11-26 Thread gustavo at atc dot ugr.es
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471 gustavo changed: What|Removed |Added Host||fedora 17 --- Comment #2 from gustavo