Skip to main content

xila_poll_wait

Function xila_poll_wait 

Source
pub unsafe extern "C" fn xila_poll_wait(
    entries: *mut PollEntry,
    count: usize,
    timeout_ms: i32,
    ready_count: *mut usize,
) -> Status
Expand description

Wait for the first ready handle, returning every ready entry in that scan. Timeout is in milliseconds, negative means infinite, and zero is a probe. A blocking wait outside a stackful coroutine returns WouldBlock when no handles are immediately ready.

ยงSafety

Entries must be aligned, writable and disjoint from ready_count, which must be aligned and writable. Non-null handles must have the indicated type. Files and directories must be live on entry. Sockets must stay live and concurrent calls on them must be limited to other poll waits.