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

Monotonic source for whole-free-owner staleness.

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

Timestamp in the bookkeeping clock domain.

Public Static Functions

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

Retained shared collection state for this exact T specialization. All corresponding manager facades share it; retaining it pins bookkeeping/backing owners, not a facade or synchronized access to user objects.

Public Static Attributes

static auto &pool = shared_state()->pool

Legacy reference into retained shared state; obey its lock/invariants.

static auto &sections = shared_state()->sections

Legacy partition reference; compound edits require transactions/quiescence.

static auto &registry = shared_state()->registry

Legacy backing-owner reference; not a separately owned domain.

static auto &stale = shared_state()->stale

Legacy stale-time map reference protected by its mutex.

static auto &release = shared_state()->release

Legacy pending-release reference protected by its mutex.

Protected Attributes

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

Retained per-T collections independent of a manager facade’s lifetime.