pub type Mutex<T> = Mutex<RawMutex, T>;Expand description
A safe PI mutex using RawMutex.
Aliased Type§
pub struct Mutex<T> { /* private fields */ }Trait Implementations§
Source§impl<T: ?Sized> InterruptibleMutexExt<T> for Mutex<T>
impl<T: ?Sized> InterruptibleMutexExt<T> for Mutex<T>
Source§fn lock_interruptible<F>(
&self,
should_interrupt: F,
) -> Result<MutexGuard<'_, T>, PiMutexLockInterrupted>
fn lock_interruptible<F>( &self, should_interrupt: F, ) -> Result<MutexGuard<'_, T>, PiMutexLockInterrupted>
Acquires this mutex unless
should_interrupt becomes true while the
caller remains queued. Read moreSource§impl<T: ?Sized> LockdepMutexExt<T> for Mutex<T>
impl<T: ?Sized> LockdepMutexExt<T> for Mutex<T>
Source§fn lock_nested(&self, subclass: u32) -> MutexGuard<'_, T>
fn lock_nested(&self, subclass: u32) -> MutexGuard<'_, T>
Acquires the mutex using
subclass for lock-order validation.