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 readsHandles to wait for (reads, only processes and sockets are supported) You can not directly wait for the termination of a process.
INTEGER ARRAY writesHandles to wait for (writes, only processes are supported)
INTEGER maxwaitTime to wait, in milliseconds (-1 = one hour)
Return value
INTEGERA handle that is signalled, or -1 when a time-out has occurred
Description
WaitForMultiple waits for readability or writabity of a list of handles.