Module sync

Source
Expand description

Synchronization primitives, and utilities for implementing them.

Modules§

atomicNon-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 either loom spin loop hints (when cfg(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§

CachePadded
Aligns the wrapped value to the size of a cache line.
InitOnce
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.