Skip to content
Coordination Primitives

Coordination Primitives

Coordination primitives

Heartbeat, failover, barrier, and work-distribution primitives layered on the substrate.

PrimitivePurpose
Heartbeat TablePer-process heartbeat slots; backs failover
Epoch BarrierAll N processes finish phase K before any starts phase K+1
Failover WatchdogScans heartbeats; reclaims work from dead peers
Event State LogEvent-sourced state with cross-process replay
Priority FanoutTiered work queue; O(1) priority selection
Progress TaskDistributed work with live cross-process progress reporting
Background SchedulerAutonomous Pass executor; survives process restart
Pass RegistryCross-process closure dispatch (Pass<F> from one process; fires in another)
Shared Async PointerCross-process lazy / speculative future-like pointer
K-Tower CascadeRecursive pow2-of-pow2 cascading container for multi-resolution coordination
Cross-Process WakerUserspace-futex slot list in MMF; cross-process wake via SHARED futex on Linux, WaitOnAddress on Windows; backs the Blocking{Spsc,Mpsc,Mpmc}Ring wrappers
Shared CondvarCross-process Mesa-style condition variable; one generation counter + CrossProcessWaker; cross-process wake proven on WSL Linux via SHARED futex
Blocking SemaphoreCross-process counting semaphore with kernel-park slow path; replaces the existing SharedSemaphore’s sleep tail with a real futex park
Blocking RW LockCross-process reader-writer lock with kernel-park slow path; both readers and writers park on the same waker
QoS PolicyDDS-inspired runtime-mutable QoS knobs (durability / history / ordering / …); sidecar policies read them each scan to drive substrate morphs
Subscriber PositionAeron-inspired MMF-resident position counter; a restarted subscriber reopens by path and resumes from the last acknowledged position
Virtual EndpointSubstrate-level endpoint identity that resolves to a local ring or a remote address at runtime via as_local() / as_remote()

For the prose overview, see coordination .