Skip to main content
Mutex
starnix_
sync
Mutex
Aliased Type
Trait Implementations
MutexLike
In crate starnix_
sync
starnix_sync
Type Alias
Mutex
Copy item path
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.