Skip to main content

Module epoch

Module epoch 

Source
Expand description

Epoch-based reclamation primitives for RealtimeAsync mode.

Provides EpochCounter (global monotonic epoch) and WorkerEpoch (per-worker pin/unpin state with cache-line padding). These are the building blocks for the epoch reclamation protocol described in the Architecture documentation.

Structs§

EpochCounter
Global epoch counter, incremented by TickEngine at each snapshot publication.
WorkerEpoch
Per-worker epoch state, padded to avoid false sharing.

Constants§

EPOCH_UNPINNED
Sentinel value meaning “this worker is not pinned to any epoch.”

Functions§

min_pinned_epoch
Compute the minimum pinned epoch across all workers.