5 releases (1 stable)
1.0.0 | Jun 7, 2024 |
---|---|
0.2.0 | Jan 9, 2023 |
0.1.2 | Aug 14, 2022 |
0.1.1 | Aug 2, 2020 |
0.1.0 | Mar 2, 2020 |
#56 in Unix APIs
11,352 downloads per month
Used in 20 crates
(7 directly)
29KB
716 lines
linux-futex
Futex: A Linux-specific fast user-space locking primitive.
This crate provides easy-to-use wrappers around the not-so-easy-to-use SYS_futex
Linux syscall.
The documentation of Linux's futexes can be found in the relevant man page. The most important details are also explained in the documentation of this crate.
The two main types of this crate are Futex
and PiFutex
, which are
simply wrappers containing an AtomicU32
exposing all the futex operations Linux can apply to them.
Existing AtomicU32
s can be used as futexes through
AsFutex
without changing their type.
lib.rs
:
Futex: A Linux-specific fast user-space locking primitive.
This crate provides easy-to-use wrappers around the not-so-easy-to-use SYS_futex
Linux syscall.
The documentation of Linux's futexes can be found in the relevant man page. The most important details are also explained in the documentation of this crate.
The two main types of this crate are Futex
and PiFutex
, which are
simply wrappers containing an AtomicU32
exposing all the futex
operations Linux can apply to them.
Existing AtomicU32
s can be used as futexes through AsFutex
without changing their type.
Dependencies
~44KB