diff options
| author | Alexander Smirnov <[email protected]> | 2025-05-31 18:39:09 +0000 |
|---|---|---|
| committer | Alexander Smirnov <[email protected]> | 2025-05-31 18:39:09 +0000 |
| commit | 2581ac68d7f03e27326b165d46a5256c2d4a737f (patch) | |
| tree | e2c86b4eedc82189fe66dd0bfc059145e0d0d6ec /library/cpp/threading/chunk_queue/queue.h | |
| parent | 4ce2a7b8a790b4836931ef488d8875d3d47479dd (diff) | |
| parent | 7013f8f4f250ce6dd1467884fe6ccd7d057448c4 (diff) | |
Merge pull request #19098 from ydb-platform/merge-libs-250531-1349
Diffstat (limited to 'library/cpp/threading/chunk_queue/queue.h')
| -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> |
