VLink  2.0.0
A high-performance communication middleware
vlink::MemoryPool::Config结构体 参考final

Constructor configuration grouping the tier list and the preallocation toggle. 更多...

#include <memory_pool.h>

vlink::MemoryPool::Config 的协作图:

Public 属性

std::vector< Tiertiers
 Tier descriptors; empty or all-sentinel selects bypass mode. 更多...
 
bool prealloc {false}
 When true, eagerly fill every managed tier to its quota. 更多...
 

详细描述

Constructor configuration grouping the tier list and the preallocation toggle.

prealloc controls whether the constructor immediately fills every tier to its full blocks_per_chunk quota. Default false keeps the lazy growth path. Preallocation is best effort; any tier whose ::operator new fails stays in lazy state and the constructor continues.

类成员变量说明

◆ prealloc

bool vlink::MemoryPool::Config::prealloc {false}

When true, eagerly fill every managed tier to its quota.

◆ tiers

std::vector<Tier> vlink::MemoryPool::Config::tiers

Tier descriptors; empty or all-sentinel selects bypass mode.


该结构体的文档由以下文件生成: