Skip to main content

Mutex

Type Alias Mutex 

Source
pub type Mutex<T> = Mutex<RawSyncMutex, T>;

Aliased Type§

pub struct Mutex<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T> MutexLike for Mutex<T>

Source§

type Guard<'a> = MutexGuard<'a, RawSyncMutex, T> where T: 'a

Source§

fn lock(&self, _level: usize) -> Self::Guard<'_>

Lock the mutex. level is the index of the locked mutex in the lock ordering.