Wasi_Runtime module

block_running

procedure · 1 overloadSource

Blocks the running thread until another wakes it or deadline passes, and says why it woke: 0, ETIMEDOUT or EDEADLK. Only for programs jaic made able to unwind (green.enabled).

block_running :: (waiting_for: *void, deadline: u64) -> s32 #c_call

Blocks the running thread until another wakes it or deadline passes, and says why it woke: 0, ETIMEDOUT or EDEADLK. Only for programs jaic made able to unwind (green.enabled).

Parameters

waiting_for: *void
deadline: u64

Returns

s32

See also