Function polkavm_linux_raw::sys_futex_wait

source ยท
pub fn sys_futex_wait(
    futex: &AtomicU32,
    expected_value: u32,
    timeout: Option<Duration>,
) -> Result<(), Error>
Expand description

Calls the futex syscall with FUTEX_WAIT operation.

This will block if the value of the futex is equal to the expected_value.

Possible non-fatal errors:

  • EAGAIN: the value of futex is not equal to expected_value
  • EINTR: the syscall was interrupted by a signal
  • ETIMEDOUT: the specified timeout has elapsed without the futex being woken up