[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:42 PDT 2024
================
@@ -18,31 +18,44 @@
// -> lock_guard<_Mutex>; // C++17
#include <mutex>
----------------
ldionne wrote:
I would suggest that we formulate the tests in terms of the `TestMutex` only, that way they would all become enabled when threading is disabled.
And then we can have a single test (probably in this test file) where we test basic interoperation between `std::lock_guard` and `std::mutex`, and that one would be the only one with `UNSUPPORTED: no-threads`.
https://github.com/llvm/llvm-project/pull/98717
More information about the libcxx-commits
mailing list