VLink  2.0.0
A high-performance communication middleware
vlink::MemoryPool::Config Struct Referencefinal

Constructor configuration grouping the tier list and the preallocation toggle. More...

#include <memory_pool.h>

Collaboration diagram for vlink::MemoryPool::Config:

Public Attributes

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

Detailed Description

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.

Member Data Documentation

◆ 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.


The documentation for this struct was generated from the following file: