Expand description
Synchronization primitives, and utilities for implementing them.
Modules§
- atomic
Non- loom
- Atomic types
- blocking
- Synchronous (blocking) synchronization primitives.
- cell
- A variant of
core::cell::UnsafeCell
specialized for use in implementations of synchronization primitives. - hint
- A wrapper for the
core::hint
module that emits eitherloom
spin loop hints (whencfg(loom)
is enabled), or real spin loop hints when loom is not enabled. - once
- Cells storing a value which must be initialized prior to use.
- spin
- Spinlocks and related synchronization primitives.
Structs§
- Cache
Padded - Aligns the wrapped value to the size of a cache line.
- Init
Once - A cell which may be initialized a single time after it is created.
- Lazy
- A cell which will be lazily initialized by the provided function the first time it is accessed.