We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a1383 commit 19eaea4Copy full SHA for 19eaea4
libcxx/include/barrier
@@ -142,8 +142,7 @@ public:
142
return __old_phase;
143
}
144
_LIBCPP_HIDE_FROM_ABI void wait(arrival_token&& __old_phase) const {
145
- auto const __test_fn = [this, __old_phase]() -> bool { return __phase_.load(memory_order_acquire) != __old_phase; };
146
- std::__libcpp_thread_poll_with_backoff(__test_fn, __libcpp_timed_backoff_policy());
+ __phase_.wait(__old_phase, std::memory_order_acquire);
147
148
_LIBCPP_HIDE_FROM_ABI void arrive_and_drop() {
149
__expected_adjustment_.fetch_sub(1, memory_order_relaxed);
0 commit comments