Appearance
cellpack::prof::Snapshots
Module contract · All interfaces
At a glance
pub struct Snapshots { /* private fields */ }Snapshot slots: one per thread, each a seqlock over plain words, so a reader never blocks a writer.
Member index
3 of 3 members
Methods and associated constants
new
threads slots of words zeroed words each.
publish
Publishes thread i’s words (only that thread writes its slot). The odd sequence between the two stores marks the words as in flux.
sum
The words of every slot, summed.
Contract reference
See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.