aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/netliba/v6/ib_buffers.h
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-08-16 22:35:50 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-08-16 22:43:57 +0300
commit2fcc3532d5bfd8ccb3fb5b884088c01376c7888d (patch)
tree9040d37b083ba19eed43ffa2dbefcf6b4c70d093 /library/cpp/netliba/v6/ib_buffers.h
parent4216b16bbaa20122c440773c8360527e846305cc (diff)
downloadydb-2fcc3532d5bfd8ccb3fb5b884088c01376c7888d.tar.gz
Intermediate changes
Diffstat (limited to 'library/cpp/netliba/v6/ib_buffers.h')
-rw-r--r--library/cpp/netliba/v6/ib_buffers.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/library/cpp/netliba/v6/ib_buffers.h b/library/cpp/netliba/v6/ib_buffers.h
index 8847250137..ae1857cdcb 100644
--- a/library/cpp/netliba/v6/ib_buffers.h
+++ b/library/cpp/netliba/v6/ib_buffers.h
@@ -11,11 +11,10 @@ namespace NNetliba {
// single thread version
class TIBBufferPool: public TThrRefBase, TNonCopyable {
- enum {
- BLOCK_SIZE_LN = 11,
- BLOCK_SIZE = 1 << BLOCK_SIZE_LN,
- BLOCK_COUNT = 1024
- };
+ static constexpr int BLOCK_SIZE_LN = 11;
+ static constexpr int BLOCK_SIZE = 1 << BLOCK_SIZE_LN;
+ static constexpr int BLOCK_COUNT = 1024;
+
struct TSingleBlock {
TIntrusivePtr<TMemoryRegion> Mem;
TVector<ui8> BlkRefCounts;