aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ErrorTest.cpp
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2024-07-31 08:15:55 -0700
committerGitHub <noreply@github.com>2024-07-31 08:15:55 -0700
commite9d5842ac7bd8d9b5700dc415910425ca796f4c1 (patch)
tree9fab6cf30a1d9aa27fecf6180311d362e36c1b9e /llvm/unittests/Support/ErrorTest.cpp
parentb5a7d3b6c2169d84f9da749425a38dcef914d1ce (diff)
downloadllvm-e9d5842ac7bd8d9b5700dc415910425ca796f4c1.zip
llvm-e9d5842ac7bd8d9b5700dc415910425ca796f4c1.tar.gz
llvm-e9d5842ac7bd8d9b5700dc415910425ca796f4c1.tar.bz2
[libc++] Make std::unique_lock available with _LIBCPP_HAS_NO_THREADS (#99562)
This is a follow up to https://github.com/llvm/llvm-project/pull/98717, which made lock_guard available under _LIBCPP_HAS_NO_THREADS. We can make unique_lock available under similar circumstances. This patch follows the example in #98717, by: - Removing the preprocessor guards for _LIBCPP_HAS_NO_THREADS in the unique_lock header. - providing a set of custom mutex implementations in a local header. - using custom locks in tests that can be made to work under `no-threads`.
Diffstat (limited to 'llvm/unittests/Support/ErrorTest.cpp')
0 files changed, 0 insertions, 0 deletions