diff options
author | tobo <tobo@yandex-team.com> | 2025-05-31 12:50:54 +0300 |
---|---|---|
committer | tobo <tobo@yandex-team.com> | 2025-05-31 13:05:32 +0300 |
commit | f1873d0f1bb38aa209678e2a986967083cd24e05 (patch) | |
tree | 464dcb84d7a86b2618f0f849b70c27abf91f2a97 /library/cpp | |
parent | 50318ed167506d485732c24a959f9c0711258047 (diff) | |
download | ydb-f1873d0f1bb38aa209678e2a986967083cd24e05.tar.gz |
rm unused includes + fix memory_order
commit_hash:bb222740eb5e56281bc138da43a8480640c40489
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> |