This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

[v3] fix libstdc++/53830


This fixes a deadlock in condition_variable_any, which I should have
fixed as part of PR 50862.

        PR libstdc++/53830
        * include/std/condition_variable (condition_variable_any::wait):
        Move _Unlock type to class scope.
        (condition_variable_any::wait_until): Reuse it.
        * testsuite/30_threads/condition_variable_any/53830.cc: New.

Tested x86_64-linux, committed to trunk. I'm also going to commit it
on the 4.6 and 4.7 branches.

Attachment: patch.txt
Description: Text document


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