diff options
author | Alexander Smirnov <alex@ydb.tech> | 2025-05-31 13:51:12 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2025-05-31 13:51:12 +0000 |
commit | 089c8af726ff1d67faeb603dc66b8a11e69c32c3 (patch) | |
tree | 77ffdf8bca0a143448734c92b4e118413c7aa5dd /library/cpp | |
parent | 2b00537e14e6dc51140ea1abed802b2949530d4c (diff) | |
parent | e571997e526ada1be8d4f72d2a9303b9947d5881 (diff) | |
download | ydb-089c8af726ff1d67faeb603dc66b8a11e69c32c3.tar.gz |
Merge branch 'rightlib' into merge-libs-250531-1349
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/threading/chunk_queue/queue.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/cpp/threading/chunk_queue/queue.h b/library/cpp/threading/chunk_queue/queue.h index fdde719e503..17ebef91a86 100644 --- a/library/cpp/threading/chunk_queue/queue.h +++ b/library/cpp/threading/chunk_queue/queue.h @@ -11,8 +11,6 @@ #include <util/system/yassert.h> #include <atomic> -#include <type_traits> -#include <utility> namespace NThreading { //////////////////////////////////////////////////////////////////////////////// @@ -287,7 +285,7 @@ namespace NThreading { ui64 NextTag() { // TODO: can we avoid synchronization here? it costs 1.5x performance penalty // return GetCycleCount(); - return WriteTag.fetch_add(1); + return WriteTag.fetch_add(1, std::memory_order_relaxed); } template <typename TT> |