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]

[C++0x] fix lock_guard's adopt_lock_t constructor


2010-03-02  Jonathan Wakely  <jwakely.gcc@gmail.com>

        * include/std/mutex (lock_guard::lock_guard): Do not lock mutex when
        adopt_lock_t constructor is used.
        * testsuite/30_threads/lock_guard/cons/1.cc: New.

Tested Linux/x86_64 and committed.

Attachment: adopt_lock.txt
Description: Text document


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