Function std::sys::unix::futex::futex_wait

source ·
pub fn futex_wait(
    futex: &AtomicU32,
    expected: u32,
    timeout: Option<Duration>
) -> bool
Expand description

Wait for a futex_wake operation to wake us.

Returns directly if the futex doesn’t hold the expected value.

Returns false on timeout, and true in all other cases.