http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455
--- Comment #8 from Zouzou <internet at 123gen dot com> 2010-11-15 13:38:39 UTC --- (In reply to comment #5) > (In reply to comment #2) > > What's the value of __gnu_cxx::__default_lock_policy on Mingw? > > Is it the same for GCC 4.4 and 4.5? > > > > Between 4.4 and 4.5 there are some changes to the ghtr-win32.h file which > > provides the gthreads abstraction layer, but there are no significant > > changes > > to shared_ptr. So for the moment I think it's either a change in the atomic > > operations supported by mingw or a change in the threading layer, not > > shared_ptr > Well, I've tested it with mingw-w64 toolchains (64-bit and 32-bit) and I > couldn't reproduce this issue. Nevertheless it could be related here to some > modifications done by mingw.org on their toolchain. So threading model is here > something to look for. > Kai i have just tried with the mingw64 currently in Cygwin (GCC 4.5.1) and it indeed doesn't exhibit this problem. i then tried to get the value of __gnu_cxx::__default_lock_policy on mingw64 and there, it is 2 (whereas it is 1 on vanilla mingw).