Module seqcell

Module seqcell 

Source
Expand description

2026-09-26: A sequence-locked cell of W words: readers take no lock and never see a mix of two stores.

A device sample is crate::device::SAMPLE_WORDS words describing one instant; one atomic per word would let a reader pair one sample’s power with another sample’s energy counter. A writer makes the sequence word odd, stores the words and makes it even; a reader retries until it saw the same even value before and after reading. Every access is an atomic.

Owner: telemetry. Invariants: load returns only a value that a single store wrote in full.

Structs§

SeqCell