This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/50862] deadlock in std::condition_variable_any
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Oct 2011 10:29:50 +0000
- Subject: [Bug libstdc++/50862] deadlock in std::condition_variable_any
- Auto-submitted: auto-generated
- References: <bug-50862-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50862
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-26 10:29:50 UTC ---
Yes, I suppose it should be:
~_Unlock()
{
if (uncaught_exception())
__try { _M_lock.lock(); } __catch(...) { }
else
_M_lock.lock();
}