Skip to main content

Module control_table

Module control_table 

Source
Expand description

The atomic control table: the lock-free bridge between the slow sensor/controller loop and the fast per-packet data path.

A controller running on its own cadence (sensor polling, loss estimation) publishes its decisions here with Relaxed stores. The hot path reads a single field with one Relaxed load and branches to the minimal coding work for the current level - no locks, no syscalls, no allocation. This is what makes the adaptive machinery “consulted as needed”, never run per packet.

All fields are u8 so each read/write is a single atomic instruction. Relaxed ordering is correct here: the control values are advisory tuning knobs, not data that gates memory safety, so the hot path tolerates reading a value one tick stale.

Structs§

ControlTable
Lock-free tuning knobs shared between the controller and the data path. Cheap to construct; share via Arc.

Enums§

CodingLevel
Coding escalation level read on the hot path.