diff options
author | AlexSm <[email protected]> | 2024-08-19 16:16:30 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-19 17:16:30 +0300 |
commit | 9b567afd3339f4525feab53873592cb025b14251 (patch) | |
tree | 5c8489f98dc5a9a10f66065055e5a401bbd14767 /library/cpp/netliba/socket/packet_queue.h | |
parent | 47bd121575c210d4bbb2dddcc2131759a694df05 (diff) |
Library import 240819-0942 (#7994)
Co-authored-by: robot-piglet <[email protected]>
Co-authored-by: hiddenpath <[email protected]>
Co-authored-by: bulatman <[email protected]>
Co-authored-by: robot-contrib <[email protected]>
Co-authored-by: osidorkin <[email protected]>
Co-authored-by: akhropov <[email protected]>
Co-authored-by: akozhikhov <[email protected]>
Co-authored-by: orlovorlov <[email protected]>
Co-authored-by: babenko <[email protected]>
Co-authored-by: shadchin <[email protected]>
Co-authored-by: dmasloff <[email protected]>
Co-authored-by: aleksei-le <[email protected]>
Co-authored-by: coteeq <[email protected]>
Co-authored-by: dimdim11 <[email protected]>
Co-authored-by: robot-ya-builder <[email protected]>
Co-authored-by: iaz1607 <[email protected]>
Diffstat (limited to 'library/cpp/netliba/socket/packet_queue.h')
-rw-r--r-- | library/cpp/netliba/socket/packet_queue.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/netliba/socket/packet_queue.h b/library/cpp/netliba/socket/packet_queue.h index 58a84709c24..a81e956862f 100644 --- a/library/cpp/netliba/socket/packet_queue.h +++ b/library/cpp/netliba/socket/packet_queue.h @@ -20,9 +20,9 @@ namespace NNetlibaSocket { template <size_t TTNumWriterThreads> class TLockFreePacketQueue { private: - enum { MAX_PACKETS_IN_QUEUE = INT_MAX, - CMD_QUEUE_RESERVE = 1 << 20, - MAX_DATA_IN_QUEUE = 32 << 20 }; + static constexpr int MAX_PACKETS_IN_QUEUE = INT_MAX; + static constexpr int CMD_QUEUE_RESERVE = 1 << 20; + static constexpr int MAX_DATA_IN_QUEUE = 32 << 20; typedef std::pair<TUdpRecvPacket*, TPacketMeta> TPacket; typedef std::conditional_t<TTNumWriterThreads == 1, NThreading::TOneOneQueue<TPacket>, NThreading::TManyOneQueue<TPacket, TTNumWriterThreads>> TImpl; |