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§
- RawPriority
Inheriting Lock - A priority-inheriting lock implementation.
Functions§
- gettid
- Safe wrapper around
gettid
.
Type Aliases§
- Priority
Inheriting Lock - A priority-inheriting lock implementation, for use within a single process.
- Priority
Inheriting Lock Guard - An RAII implementation of a “scoped lock” for
PriorityInheritingLock
. When this structure is dropped (falls out of scope), the lock will be unlocked. - Shared
Priority Inheriting Lock - A priority-inheriting lock implementation, for use across processes.
- Shared
Priority Inheriting Lock Guard - An RAII implementation of a “scoped lock” for
SharedPriorityInheritingLock
. When this structure is dropped (falls out of scope), the lock will be unlocked.