pub fn twz_rt_futex_wait(
word: &AtomicFutexWord,
expected: FutexWord,
timeout: Option<Duration>,
) -> bool
Expand description
If the futex word pointed to by word
is equal to expected, put the thread to sleep. This
operation is atomic – the thread is enqueued on the sleep queue first, before the equality
check. Returns false on timeout, true on all other cases.