Module mycelium_util::sync

source ·
Expand description

Synchronization primitives, and utilities for implementing them.

Modules§

  • atomicNon-loom
    Atomic types
  • A variant of core::cell::UnsafeCell specialized for use in implementations of synchronization primitives.
  • 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.
  • Cells storing a value which must be initialized prior to use.
  • Spinlocks and related synchronization primitives.

Structs§

  • Aligns the wrapped value to the size of a cache line.
  • A cell which may be initialized a single time after it is created.
  • A cell which will be lazily initialized by the provided function the first time it is accessed.