[libcxx-commits] [libcxx] [libc++] Make `std::lock_guard` available with `_LIBCPP_HAS_NO_THREADS` (PR #98717)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 15 09:18:43 PDT 2024
================
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: no-threads
----------------
ldionne wrote:
We can lift this `UNSUPPORTED` by defining our own mutex-like class. Also, while we're at it this test should be a `.compile.pass.cpp` and it should test `static_assert(!std::is_copy_assignable<std::lock_guard<MyMutexType>>::value, "");`.
https://github.com/llvm/llvm-project/pull/98717
More information about the libcxx-commits
mailing list