Skip to main content

Mutex

Type Alias Mutex 

Source
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>

Source§

fn lock_interruptible<F>( &self, should_interrupt: F, ) -> Result<MutexGuard<'_, T>, PiMutexLockInterrupted>
where F: FnMut() -> bool,

Acquires this mutex unless should_interrupt becomes true while the caller remains queued. Read more
Source§

impl<T: ?Sized> LockdepMutexExt<T> for Mutex<T>

Source§

fn lock_nested(&self, subclass: u32) -> MutexGuard<'_, T>

Acquires the mutex using subclass for lock-order validation.