Unit 'exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

WaitIO

Wait for completion of an I/O request

Declaration

Source position: exec.pas line 1862

procedure WaitIO(

  IORequest: PIORequest

);

Arguments

IORequest

  

A pointer to an I/O request block

Description

This function waits for the specified I/O request to complete, then removes it from the replyport. If the I/O has already completed, this function will return immediately.

This function should be used with care, as it does not return until the I/O request completes; if the I/O never completes, this function will never return, and your task will hang. If this situation is a possibility, it is safer to use the Wait() function. Wait() will return return when any of a specified set of signal is received. This is how I/O timeouts can be properly handled.

See also

DoIO

  

Perform an I/O request and wait for its finish

SendIO

  

Initiate an I/O command

CheckIO

  

Check status on an I/O request

AbortIO

  

Attempt to abort an in-progress I/O request


Documentation generated on: 2021-07-30