pub struct SpinLock {
lock: AtomicBool,
}Expand description
A mutual exclusion primitive, facilitating busy-waiting.
Fields§
§lock: AtomicBoolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SpinLock
impl RefUnwindSafe for SpinLock
impl Send for SpinLock
impl Sync for SpinLock
impl Unpin for SpinLock
impl UnwindSafe for SpinLock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more