Skip to main content

Module futex

Module futex 

Source
Available on Linux, or Android, or Emscripten and target feature atomics, or FreeBSD, or OpenBSD, or DragonFly BSD, or Fuchsia only.

Functions§

futex_waitLinux or Android or FreeBSD
Waits for a futex_wake operation to wake us.
futex_wakeLinux or Android
Wakes up one thread that’s blocked on futex_wait on this futex.
futex_wake_allLinux or Android
Wakes up all threads that are waiting on futex_wait on this futex.

Type Aliases§

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