File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ namespace std
5454
5555# include < __assert>
5656# include < __atomic/atomic.h>
57+ # include < __atomic/atomic_sync.h>
5758# include < __atomic/memory_order.h>
5859# include < __cstddef/ptrdiff_t.h>
5960# include < __memory/unique_ptr.h>
@@ -142,8 +143,7 @@ public:
142143 return __old_phase;
143144 }
144145 _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 ());
146+ __phase_.wait (__old_phase, std::memory_order_acquire);
147147 }
148148 _LIBCPP_HIDE_FROM_ABI void arrive_and_drop () {
149149 __expected_adjustment_.fetch_sub (1 , memory_order_relaxed);
You can’t perform that action at this time.
0 commit comments