Module spin

Source

Structs§

SpinLock
A primitive that provides safe, mutable access to a shared resource.
SpinLockGuard
An RAII implementation of a “scoped lock” for a SpinLock. When this structure is dropped, the lock will be released. The resource protected by the SpinLock can be accessed via the Deref and DerefMut implementations of this structure.

Constants§

LOCKED 🔒
UNLOCKED 🔒