Skip to content

WaitOnPort

Waits for a call on a port.

Library helper

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

PortWaitResult WaitOnPort(Handle port, Duration timeout);

On success the caller holds the call and must Reply(), ReplyRecv() or Hold() before receiving again.

Parameters

Name Direction Description
port in Port handle with PERM_WAIT.
timeout in Milliseconds to wait, or TIMEOUT_POLL / TIMEOUT_INFINITE.

Returns

The unpacked result; status as for WaitOn().