[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:30 PDT 2024
================
@@ -16,10 +14,12 @@
#include <mutex>
+struct MyMutex {};
+
int main(int, char**)
{
- std::mutex m;
- std::lock_guard<std::mutex> lg = m; // expected-error{{no viable conversion}}
+ MyMutex m;
+ std::lock_guard<MyMutex> lg = m; // expected-error{{no viable conversion}}
----------------
petrhosek wrote:
Done.
https://github.com/llvm/llvm-project/pull/98717
More information about the libcxx-commits
mailing list