Template Struct BlockManagement

Nested Relationships

Nested Types

Inheritance Relationships

Derived Type

Struct Documentation

template<typename T>
struct BlockManagement

Bookkeeping shared by managers of the same T: registry owns full allocations, sections partitions split allocations, and pool records reusable ranges.

stale timestamps complete free owners; release queues them for culling. A retained State keeps this bookkeeping alive after a manager facade dies.

Subclassed by CE::Memory::AbstractBlockManager< T >

Public Types

using clock = std::chrono::steady_clock
using tpoint = std::chrono::time_point<clock>

Public Static Functions

static inline std::shared_ptr<State> shared_state()

Public Static Attributes

static auto &pool = shared_state()->pool
static auto &sections = shared_state()->sections
static auto &registry = shared_state()->registry
static auto &stale = shared_state()->stale
static auto &release = shared_state()->release

Protected Attributes

std::shared_ptr<State> state_ = shared_state()