diff options
author | thegeorg <[email protected]> | 2023-08-20 12:48:30 +0300 |
---|---|---|
committer | thegeorg <[email protected]> | 2023-08-20 14:09:13 +0300 |
commit | 05e8229556946514f3e7a20ba6ad49d61aeb05aa (patch) | |
tree | 7f0e99a0fce404f2ca53937aa3af1cfedaa91c15 /contrib/restricted/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc | |
parent | 5017c0605609840684cdc5e1bcbc83000f24a08c (diff) |
Update contrib/restricted/abseil-cpp to 20230802.0
Diffstat (limited to 'contrib/restricted/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc')
-rw-r--r-- | contrib/restricted/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/restricted/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc b/contrib/restricted/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc index 44e6129bb0a..eacaa28d7b2 100644 --- a/contrib/restricted/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc +++ b/contrib/restricted/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc @@ -13,10 +13,12 @@ // limitations under the License. #include <stdint.h> + #include <new> // 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 +73,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( |