Expand description
Pure-Rust futex synchronization primitives (FutexMutex) with zero pthreads dependencies.
Structs§
- Futex
Mutex - Move-safe, zero-allocation 3-state futex mutex (
0= unlocked,1= locked,2= contended). - Futex
Mutex Guard - RAII guard for
FutexMutex.
Constants§
- FUTEX_
WAIT_ PRIVATE - Private futex wait operation (
FUTEX_WAIT | FUTEX_PRIVATE_FLAG). - FUTEX_
WAKE_ PRIVATE - Private futex wake operation (
FUTEX_WAKE | FUTEX_PRIVATE_FLAG).
Functions§
- futex_
wait - Waits on futex
wordwhile its value equalsexpected, with an optional relativetimeout. - futex_
wake_ all - Wakes all waiters blocked on futex
word. - futex_
wake_ one - Wakes at most one waiter blocked on futex
word.