[libcxx-commits] [libcxx] [libc++] Use Fuchsia futex operations (PR #133571)

Roland McGrath via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 26 16:49:11 PDT 2026


================
@@ -101,6 +105,24 @@ static void __libcpp_platform_wake_by_address(__cxx_atomic_contention_t const vo
   _umtx_op(const_cast<__cxx_atomic_contention_t*>(__ptr), UMTX_OP_WAKE, __notify_one ? 1 : INT_MAX, nullptr, nullptr);
 }
 
+#elif defined(__Fuchsia__)
+
+static inline zx_futex_t const* __libcpp_zx_futex(__cxx_atomic_contention_t const volatile* ptr) {
----------------
frobtech wrote:

Done.

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


More information about the libcxx-commits mailing list