#[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

Create a new, unlocked RawPriorityInheritingLock.

Trait Implementations

Create a new, unlocked RawPriorityInheritingLock.

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.

Initial value for an unlocked mutex.

Marker type which determines whether a lock guard should be Send. Use one of the GuardSend or GuardNoSend helper types here. Read more

Attempts to acquire this mutex without blocking. Returns true if the lock was successfully acquired and false otherwise. Read more

Unlocks this mutex. Read more

Checks whether the mutex is currently locked.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.