aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.com>2025-05-31 12:50:54 +0300
committertobo <tobo@yandex-team.com>2025-05-31 13:05:32 +0300
commitf1873d0f1bb38aa209678e2a986967083cd24e05 (patch)
tree464dcb84d7a86b2618f0f849b70c27abf91f2a97 /library/cpp
parent50318ed167506d485732c24a959f9c0711258047 (diff)
downloadydb-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.h4
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>