rustix-futex-sync

Crates.iorustix-futex-sync
lib.rsrustix-futex-sync
version0.2.3
sourcesrc
created_at2023-08-25 16:46:46.588455
updated_at2024-08-27 19:06:16.847755
descriptionLinux futex-based synchronization
homepage
repositoryhttps://github.com/sunfishcode/rustix-futex-sync
max_upload_size
id954910
size123,098
Dan Gohman (sunfishcode)

documentation

https://docs.rs/rustix-futex-sync

README

rustix-futex-sync

Linux futex-based synchronization

Github Actions CI Status zulip chat crates.io page docs.rs docs

Linux futex-based implementations of Mutex, RwLock, Condvar, Once, and OnceLock, as well as RawMutex, RawRwLock, and RawCondvar, derived from the futex code in std, factored out to a standalone no_std crate using rustix to do the futex and lock_api to provide most of the public Mutex and RwLock API.

lock_api does not support poisoning, so support for poisoning is omitted.

In this library, Condvar, RawCondvar, RawMutex, and Once are guaranteed to be repr(transparent) wrappers around a single AtomicU32. RawRwLock is guaranteed to be a repr(C) wrapper around two AtomicU32s. The contents of these AtomicU32s are not documented, except that all these types' const fn new() and INIT are guaranteed to initialize them to all zeros.

Commit count: 37

cargo fmt