#[repr(transparent)]pub struct RawPriorityInheritingLock<S>(_);
Expand description
A priority-inheriting lock implementation.
Consider using PriorityInheritingLock
or SharedPriorityInheritingLock
as higher level
abstractions around this type.
Implementations
sourceimpl<S> RawPriorityInheritingLock<S>
impl<S> RawPriorityInheritingLock<S>
Trait Implementations
sourceimpl<S> Default for RawPriorityInheritingLock<S>
impl<S> Default for RawPriorityInheritingLock<S>
sourceimpl<S: Scope> RawMutex for RawPriorityInheritingLock<S>
impl<S: Scope> RawMutex for RawPriorityInheritingLock<S>
sourcefn lock(&self)
fn lock(&self)
Acquires this mutex, blocking the current thread until it is able to do so. If this call blocks and the thread holding the lock has a lower priority, the priority of the thread holding the lock will be temporarily boosted to match the calling thread’s priority.
sourceconst INIT: RawPriorityInheritingLock<S> = RawPriorityInheritingLock::new()
const INIT: RawPriorityInheritingLock<S> = RawPriorityInheritingLock::new()
Initial value for an unlocked mutex.
type GuardMarker = GuardNoSend
type GuardMarker = GuardNoSend
Marker type which determines whether a lock guard should be Send
. Use
one of the GuardSend
or GuardNoSend
helper types here. Read more
Auto Trait Implementations
impl<S> RefUnwindSafe for RawPriorityInheritingLock<S> where
S: RefUnwindSafe,
impl<S> Send for RawPriorityInheritingLock<S> where
S: Send,
impl<S> Sync for RawPriorityInheritingLock<S> where
S: Sync,
impl<S> Unpin for RawPriorityInheritingLock<S> where
S: Unpin,
impl<S> UnwindSafe for RawPriorityInheritingLock<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more