[libcxx-commits] [libcxx] [libc++] Use native wait in std::barrier instead of sleep loop (PR #171041)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 12 10:08:25 PST 2025


================
@@ -142,8 +142,7 @@ public:
     return __old_phase;
   }
   _LIBCPP_HIDE_FROM_ABI void wait(arrival_token&& __old_phase) const {
-    auto const __test_fn = [this, __old_phase]() -> bool { return __phase_.load(memory_order_acquire) != __old_phase; };
----------------
ldionne wrote:

Can we remove some includes now?

https://github.com/llvm/llvm-project/pull/171041


More information about the libcxx-commits mailing list