pub const fn const_spinlock<T>(val: T) -> Spinlock<T>
Create an unlocked Spinlock in a const context.
Spinlock
const
use spinning_top::{const_spinlock, Spinlock}; static SPINLOCK: Spinlock<i32> = const_spinlock(42);