[libcxx-commits] [libcxx] [libc++] Make `std::lock_guard` available with `_LIBCPP_HAS_NO_THREADS` (PR #98717)
Petr Hosek via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 16 09:32:00 PDT 2024
================
@@ -14,11 +14,9 @@
#include <mutex>
-int main(int, char**)
-{
- std::mutex m;
- std::lock_guard<std::mutex> lg0(m);
- std::lock_guard<std::mutex> lg(lg0);
+class MyMutex;
+int main(int, char**) {
----------------
petrhosek wrote:
Done.
https://github.com/llvm/llvm-project/pull/98717
More information about the libcxx-commits
mailing list