[libcxx-commits] [libcxx] [libc++] atomic_wait refactor experiment (PR #85086)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 13 10:14:03 PDT 2024
================
@@ -104,9 +104,11 @@ static void __libcpp_platform_wake_by_address(__cxx_atomic_contention_t const vo
static constexpr size_t __libcpp_contention_table_size = (1 << 8); /* < there's no magic in this number */
struct alignas(64) /* aim to avoid false sharing */ __libcpp_contention_table_entry {
- __cxx_atomic_contention_t __contention_state;
+ __cxx_atomic_contention_t __contention_state; // this is the waiter count
----------------
ldionne wrote:
You could also just rename this member?
https://github.com/llvm/llvm-project/pull/85086
More information about the libcxx-commits
mailing list