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§

RawPriorityInheritingLock
A priority-inheriting lock implementation.

Functions§

gettid
Safe wrapper around gettid.

Type Aliases§

PriorityInheritingLock
A priority-inheriting lock implementation, for use within a single process.
PriorityInheritingLockGuard
An RAII implementation of a “scoped lock” for PriorityInheritingLock. When this structure is dropped (falls out of scope), the lock will be unlocked.
SharedPriorityInheritingLock
A priority-inheriting lock implementation, for use across processes.
SharedPriorityInheritingLockGuard
An RAII implementation of a “scoped lock” for SharedPriorityInheritingLock. When this structure is dropped (falls out of scope), the lock will be unlocked.