[libcxx-commits] [libcxx] [libc++] Make locks available with _LIBCPP_HAS_NO_THREADS (PR #98717)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 12 22:58:29 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 14b9d12039134a081686e9ed3939e789271b5707 1aec8cd07c1b0f6f45cf54e640d8265299ee86c4 --extensions h, -- libcxx/include/__mutex/lock_guard.h libcxx/include/__mutex/unique_lock.h libcxx/include/mutex libcxx/include/shared_mutex
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/shared_mutex b/libcxx/include/shared_mutex
index 5918af4a21..63d24e0182 100644
--- a/libcxx/include/shared_mutex
+++ b/libcxx/include/shared_mutex
@@ -305,7 +305,7 @@ bool shared_timed_mutex::try_lock_shared_until(const chrono::time_point<_Clock,
return true;
}
-# endif // !_LIBCPP_HAS_NO_THREADS
+# endif // !_LIBCPP_HAS_NO_THREADS
template <class _Mutex>
class shared_lock {
``````````
</details>
https://github.com/llvm/llvm-project/pull/98717
More information about the libcxx-commits
mailing list