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]

Fix libstdc++/56002


This allows the generic locks to be used when threading is not enabled
or supported, so std::lock_guard etc. can be used with user-defined
mutex types.

        PR libstdc++/56002
        * include/std/mutex (lock_guard, unique_lock, lock): Define without
        depending on _GLIBCXX_HAS_GTHREADS.
        * testsuite/30_threads/lock_guard/cons/1.cc: Run on all targets.

Tested x86_64-linux, with posix and single thread models.
Committed to trunk. This should be safe for 4.7.3 and 4.8.1 so I'll
commit to the branches too at some point.

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]