Crate priority_inheriting_lock
source ·Expand description
This library provides a futex-based priority-inheriting lock implementation.
It uses @m-ou-se’s linux-futex
crate
to implement @Amanieu’s lock_api
, providing
a priority-inheriting mutex on Linux.
In general, you should consider using the lock implementations provided by std
or parking_lot
, unless your application
is intended to run on a real-time system where priority inversions must be avoided.
Structs
- A priority-inheriting lock implementation.
Functions
- Safe wrapper around
gettid
.
Type Aliases
- A priority-inheriting lock implementation, for use within a single process.
- An RAII implementation of a “scoped lock” for
PriorityInheritingLock
. When this structure is dropped (falls out of scope), the lock will be unlocked. - A priority-inheriting lock implementation, for use across processes.
- An RAII implementation of a “scoped lock” for
SharedPriorityInheritingLock
. When this structure is dropped (falls out of scope), the lock will be unlocked.