pub type SpinlockGuard<'a, T> = MutexGuard<'a, RawSpinlock, T>;Available on crate feature
full and non-crate feature use_std only.Expand description
An RAII implementation of a “scoped lock” of a spinlock. When this structure is dropped (falls out of scope), the lock will be unlocked.
The data protected by the spinlock can be accessed through this guard via its
Deref and DerefMut implementations.
Aliased Type§
pub struct SpinlockGuard<'a, T> { /* private fields */ }Trait Implementations§
Source§impl<T> SpinlockGuardExt for SpinlockGuard<'_, T>
impl<T> SpinlockGuardExt for SpinlockGuard<'_, T>
Source§fn unlock_no_interrupts(this: Self)
fn unlock_no_interrupts(this: Self)
Unlock the spinlock without enabling interrupts, regardless of whether interrupts were enabled
before the spinlock was locked.