This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++/50862 fix deadlock in condition_variable_any


        PR libstdc++/50862
        * include/std/condition_variable (condition_variable_any::wait): Fix
        deadlock and ensure _Lock::lock() is called on exit.
        (condition_variable_any::native_handle): Remove, as per LWG 1500.
        * testsuite/30_threads/condition_variable_any/50862.cc: New.

Tested x86_64-linux, committed to trunk.

I plan to fix this on the 4.6 branch too, it's a shame it's too late for 4.6.2

Attachment: 50862.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]