[libcxx-commits] [libcxx] [libc++] atomic timed wait (PR #172214)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 19 11:08:58 PST 2025


================
@@ -161,26 +90,26 @@ struct __atomic_wait_backoff_impl {
   using __waitable_traits _LIBCPP_NODEBUG = __atomic_waitable_traits<__decay_t<_AtomicWaitable> >;
   using __value_type _LIBCPP_NODEBUG      = typename __waitable_traits::__value_type;
 
-  _LIBCPP_HIDE_FROM_ABI bool operator()(chrono::nanoseconds __elapsed) const {
+  _LIBCPP_HIDE_FROM_ABI __backoff_results operator()(chrono::nanoseconds __elapsed) const {
----------------
ldionne wrote:

I think this is a great refactoring, it's a lot easier to understand now. I'd also suggest making this change in a separate patch, though.

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


More information about the libcxx-commits mailing list