pub struct RawPriorityInheritingLock<S>(/* private fields */);
Expand description
A priority-inheriting lock implementation.
Consider using PriorityInheritingLock
or SharedPriorityInheritingLock
as higher level
abstractions around this type.
Implementations§
Source§impl<S> RawPriorityInheritingLock<S>
impl<S> RawPriorityInheritingLock<S>
Trait Implementations§
Source§impl<S> Default for RawPriorityInheritingLock<S>
impl<S> Default for RawPriorityInheritingLock<S>
Source§impl<S: Scope> RawMutex for RawPriorityInheritingLock<S>
impl<S: Scope> RawMutex for RawPriorityInheritingLock<S>
Source§fn 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.
Source§const INIT: RawPriorityInheritingLock<S>
const INIT: RawPriorityInheritingLock<S>
Initial value for an unlocked mutex.
Source§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.Source§impl<S: Scope> RawMutexTimed for RawPriorityInheritingLock<S>
impl<S: Scope> RawMutexTimed for RawPriorityInheritingLock<S>
Source§fn try_lock_for(&self, timeout: Self::Duration) -> bool
fn try_lock_for(&self, timeout: Self::Duration) -> bool
Attempts to acquire this lock until a timeout is reached.
Source§fn try_lock_until(&self, timeout: Self::Instant) -> bool
fn try_lock_until(&self, timeout: Self::Instant) -> bool
Attempts to acquire this lock until a timeout is reached.
Auto Trait Implementations§
impl<S> !Freeze for RawPriorityInheritingLock<S>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more