Skip to main content
Module unix
Source use crate::sync::atomic::Atomic; 🔒 Experimentaluse crate::time::Duration; 🔒 use libc::SYS_futex; 🔒
- futex_waitAndroid or FreeBSD or Linux
- Waits for a
futex_wake operation to wake us. - futex_wakeAndroid or Linux
- Wakes up one thread that’s blocked on
futex_wait on this futex. - futex_wake_allAndroid or Linux
- Wakes up all threads that are waiting on
futex_wait on this futex.
- Futex
- An atomic for use as a futex that is at least 32-bits but may be larger
- Primitive
- Must be the underlying type of Futex
- SmallFutex
- An atomic for use as a futex that is at least 8-bits but may be larger.
- SmallPrimitive
- Must be the underlying type of SmallFutex