[libcxx-commits] [libcxx] varconst/fix flaky atomic wait (PR #70435)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 27 02:34:48 PDT 2023
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 ec7c1a476d9e9d4018e94857f9bbb7aca2145c03 7fd483413828751e3f55cdd101f549b35f0eeb2c -- libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_notify_all.pass.cpp libcxx/test/std/thread/thread.jthread/cons.func.token.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_notify_all.pass.cpp b/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_notify_all.pass.cpp
index b96691735a4c..2c8161eedbc4 100644
--- a/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_notify_all.pass.cpp
+++ b/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_notify_all.pass.cpp
@@ -58,7 +58,7 @@ struct TestFn {
static_assert(noexcept(std::atomic_notify_all(&a)), "");
std::atomic<bool> is_ready[2] = {false, false};
- auto f = [&](int index) {
+ auto f = [&](int index) {
assert(std::atomic_load(&a) == T(2));
is_ready[index].store(true);
``````````
</details>
https://github.com/llvm/llvm-project/pull/70435
More information about the libcxx-commits
mailing list