Function wasix::futex_wait

source ·
pub unsafe fn futex_wait(
    futex: *mut u32,
    expected: u32,
    timeout: *const OptionTimestamp
) -> Result<Bool, Errno>
Expand description

Wait for a futex_wake operation to wake us. Returns with EINVAL if the futex doesn’t hold the expected value. Returns false on timeout, and true in all other cases.

Parameters

  • futex - Memory location that holds the value that will be checked
  • expected - Expected value that should be currently held at the memory location
  • timeout - Timeout should the futex not be triggered in the allocated time