linux-futex

Crates.iolinux-futex
lib.rslinux-futex
version1.0.0
sourcesrc
created_at2020-03-02 17:21:37.329853
updated_at2024-06-07 12:42:44.936199
descriptionFutex: A Linux-specific fast user-space locking primitive
homepage
repositoryhttps://github.com/m-ou-se/linux-futex
max_upload_size
id214537
size30,280
Mara Bos (m-ou-se)

documentation

README

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 AtomicU32s can be used as futexes through AsFutex without changing their type.

Commit count: 24

cargo fmt