aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/netliba/socket/packet_queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/netliba/socket/packet_queue.h')
-rw-r--r--library/cpp/netliba/socket/packet_queue.h6
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 58a84709c2..a81e956862 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;