diff options
author | lukyan <lukyan@yandex-team.com> | 2023-12-05 19:07:41 +0300 |
---|---|---|
committer | lukyan <lukyan@yandex-team.com> | 2023-12-05 20:50:57 +0300 |
commit | d5b84ed65f77eab0135b9d0ee025556f4507b62b (patch) | |
tree | 5c5db90ad950923a5554c4a0f5fac239b3f44c53 /library/cpp/yt/system/thread_id.cpp | |
parent | ddadddf4718f23838ed4ffb8e6aa1f126301cf55 (diff) | |
download | ydb-d5b84ed65f77eab0135b9d0ee025556f4507b62b.tar.gz |
Use volatile TLS in library/cpp/yt
Diffstat (limited to 'library/cpp/yt/system/thread_id.cpp')
-rw-r--r-- | library/cpp/yt/system/thread_id.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/yt/system/thread_id.cpp b/library/cpp/yt/system/thread_id.cpp index c4eef110b2..1ecf1fe9bd 100644 --- a/library/cpp/yt/system/thread_id.cpp +++ b/library/cpp/yt/system/thread_id.cpp @@ -6,7 +6,7 @@ namespace NYT { //////////////////////////////////////////////////////////////////////////////// -thread_local TSequentialThreadId CachedSequentialThreadId = InvalidSequentialThreadId; +YT_THREAD_LOCAL(TSequentialThreadId) CachedSequentialThreadId = InvalidSequentialThreadId; std::atomic<TSequentialThreadId> SequentialThreadIdGenerator = InvalidSequentialThreadId; TSystemThreadId GetSystemThreadId() |