[][src]Function sunrise_kernel::syscalls::wait_synchronization

pub fn wait_synchronization(
    handles_ptr: UserSpacePtr<[u32]>,
    timeout_ns: usize
) -> Result<usize, UserspaceError>

Waits for one of the handles to signal an event.

When zero handles are passed, this will wait forever until either timeout or cancellation occurs.

If timeout is 0, the function will not schedule or register intent, but merely check if the handles are currently signaled.

Does not accept 0xFFFF8001 or 0xFFFF8000 as handles.

Result

Index of the handle that was signaled in the handles table.

Error