Module cycler::atomic_cycler[][src]

The AtomicCycler uses a custom atomic read/write lockless lock to keep track of reading and writing to each block without using unsafe code. This implementation is faster than RwLockCycler but it relies on a custom lock that is filled with unsafe code.

Structs

AtomicCyclerReader

The reader for an RwLockCycler

AtomicCyclerWriter

The writer to an AtomicCyclerWriter

Functions

build_multiple_reader

Creates a multi reader RwLockCycler, the amount of readers being initial_values.len() - 2.

build_single_reader

Creates a single reader RwLockCycler using values as the initial values for the slots.