diff options
author | Abseil Team <absl-team@google.com> | 2023-02-08 10:49:52 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-08 10:50:57 -0800 |
commit | dcaed1a05a813e95b65219e0d1f6a2a684e13028 (patch) | |
tree | f7c8ed9f93f148d43694d208d8bf76214af72a28 /absl/synchronization/internal/create_thread_identity.cc | |
parent | 2de126cc5826a8d464270ead65a7a9a7b012b741 (diff) |
Add overrides to other functions which call Waiter::GetWaiter
PiperOrigin-RevId: 508124592
Change-Id: Ib183e6e241c81b2760e7f849f8af8e7e2c30ea42
Diffstat (limited to 'absl/synchronization/internal/create_thread_identity.cc')
-rw-r--r-- | absl/synchronization/internal/create_thread_identity.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/absl/synchronization/internal/create_thread_identity.cc b/absl/synchronization/internal/create_thread_identity.cc index 44e6129b..f1ddbbb9 100644 --- a/absl/synchronization/internal/create_thread_identity.cc +++ b/absl/synchronization/internal/create_thread_identity.cc @@ -17,6 +17,7 @@ // This file is a no-op if the required LowLevelAlloc support is missing. #include "absl/base/internal/low_level_alloc.h" +#include "absl/synchronization/internal/waiter.h" #ifndef ABSL_LOW_LEVEL_ALLOC_MISSING #include <string.h> @@ -71,6 +72,9 @@ static intptr_t RoundUp(intptr_t addr, intptr_t align) { void OneTimeInitThreadIdentity(base_internal::ThreadIdentity* identity) { PerThreadSem::Init(identity); + identity->ticker.store(0, std::memory_order_relaxed); + identity->wait_start.store(0, std::memory_order_relaxed); + identity->is_idle.store(false, std::memory_order_relaxed); } static void ResetThreadIdentityBetweenReuse( |