[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:19 PDT 2024
================
@@ -23,10 +21,10 @@
#include "test_macros.h"
-int main(int, char**)
-{
- static_assert((std::is_same<std::lock_guard<std::mutex>::mutex_type,
- std::mutex>::value), "");
+struct MyMutex {};
+
+int main(int, char**) {
----------------
petrhosek wrote:
Done.
https://github.com/llvm/llvm-project/pull/98717
More information about the libcxx-commits
mailing list