Module conquer_once::spin

source ·
Expand description

Synchronized one-time and lazy initialization primitives that use spin-locks in case of concurrent accesses under contention.

Type Definitions

  • A type for lazy initialization of e.g. global static variables, which provides the same functionality as the lazy_static! macro.
  • A synchronization primitive which can be used to run a one-time global initialization.
  • An interior mutability cell type which allows synchronized one-time initialization and read-only access exclusively after initialization.