WaitForMultiple (open)

Waits for reads and/or writes, for a maximum of one hour.

Syntax

// Core function, no LOADLIB necessary

INTEGER FUNCTION WaitForMultiple(INTEGER ARRAY reads, INTEGER ARRAY writes, INTEGER maxwait)

Parameters

INTEGER ARRAY reads

Handles to wait for (reads, only processes and sockets are supported) You can not directly wait for the termination of a process.

INTEGER ARRAY writes

Handles to wait for (writes, only processes are supported)

INTEGER maxwait

Time to wait, in milliseconds (-1 = one hour)

Return value

INTEGER

A handle that is signalled, or -1 when a time-out has occurred

Description

WaitForMultiple waits for readability or writabity of a list of handles.