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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns true if acquired spin lock.

Returns true if acquired spin lock.

Unlocks the spin lock.

Returns true if locked (but not necessarily by this thread).

Returns true if unlocked.

Forcibly unlocks the spin lock, even if it is currently unlocked. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.