Module mycelium_util::sync::spin

source ·
Expand description

Spinlocks and related synchronization primitives.

Structs§

  • An exponential backoff for spin loops.
  • A spinlock-based mutual exclusion lock for protecting shared data
  • An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.