[libcxx-commits] [libcxx] [libc++] Fix `std::atomic::wait` ulock wait UL_COMPARE_AND_WAIT64 (PR #92783)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 28 17:51:59 PDT 2024


================
@@ -69,17 +69,17 @@ extern "C" int __ulock_wait(
     uint32_t operation, void* addr, uint64_t value, uint32_t timeout); /* timeout is specified in microseconds */
 extern "C" int __ulock_wake(uint32_t operation, void* addr, uint64_t wake_value);
 
----------------
EricWF wrote:

It's probably worth adding a `static_assert(sizeof(__cxx_atomic_contention_t) == 8);`.

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


More information about the libcxx-commits mailing list