Skip to content

WaitOnTask

Waits for a task to exit or fault.

Library helper

Implemented in zuzu.h on top of the syscalls; it has no syscall number of its own.

TaskWaitResult WaitOnTask(Handle task, Duration timeout);

Parameters

Name Direction Description
task in Task handle with PERM_WAIT; not the caller itself.
timeout in Milliseconds to wait, or TIMEOUT_POLL / TIMEOUT_INFINITE.

Returns

The unpacked result; status as for WaitOn().