Skip to main content

SpinlockGuard

Type Alias SpinlockGuard 

Source
pub type SpinlockGuard<'a, T: ?Sized> = 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 mutex.

When this structure is dropped (falls out of scope), the lock will be unlocked.

Aliased Type§

pub struct SpinlockGuard<'a, T: ?Sized> { /* private fields */ }

Trait Implementations§

Source§

impl<T> SpinlockGuardExt for SpinlockGuard<'_, T>

Source§

fn unlock_no_interrupts(this: Self)

Unlock the spinlock without enabling interrupts, regardless of whether interrupts were enabled before the spinlock was locked