Struct swiss_army_knife::hardware_optimized_spin_lock::AtomicBoolSpinLock [−][src]
pub struct AtomicBoolSpinLock(_);
Expand description
An efficient, CAS-free unfair spin lock that uses an atomic fetch OR and only requires one byte of memory.
Trait Implementations
Returns true if acquired spin lock.
Returns true if acquired spin lock.
Unlocks the spin lock.
Returns true if unlocked.
Forcibly unlocks the spin lock, even if it is currently unlocked. Read more
Auto Trait Implementations
impl RefUnwindSafe for AtomicBoolSpinLock
impl Send for AtomicBoolSpinLock
impl Unpin for AtomicBoolSpinLock
impl UnwindSafe for AtomicBoolSpinLock