[libcxx-commits] [libcxx] [libc++] Refactor the predicate taking variant of `__cxx_atomic_wait` (PR #80596)

Jan Kokemüller via libcxx-commits libcxx-commits at lists.llvm.org
Sun Feb 18 04:23:03 PST 2024


================
@@ -178,6 +178,7 @@ _LIBCPP_EXPORTED_FROM_ABI void __cxx_atomic_notify_one(__cxx_atomic_contention_t
 _LIBCPP_EXPORTED_FROM_ABI void __cxx_atomic_notify_all(__cxx_atomic_contention_t const volatile* __location) {
   __libcpp_contention_notify(&__libcpp_contention_state(__location)->__contention_state, __location, false);
 }
+// This function is never used, but still exported for ABI compatibility.
----------------
jiixyj wrote:

And now, `__poll_or_get_monitor` makes sure that in this case, the "monitor" value is always "0" (because `return __poll_(__monitor);` sets `__monitor` to "0" if it returns false).

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


More information about the libcxx-commits mailing list