Check status on an I/O request
Source position: exec.pas line 2004
function CheckIO( |
ioRequest: PIORequest |
):PIORequest; |
ioRequest |
|
Pointer to an I/O request block |
Nil if I/O is still in progress otherwise a pointer to the I/O Request.
This function determines the current state of an I/O request and returns False if the I/O has not yet completed. This function effectively hides the internals of the I/O completion mechanism.
CheckIO() will NOT remove the returned IORequest from the reply port. This is best performed with WaitIO(). If the request has already completed, WaitIO() will return quickly. Use of the Remove() function is dangerous, since other tasks may still be adding things to your message port; a Disable() would be required.
This function should NOT be used to busy loop (looping until IO is complete). WaitIO() is provided for that purpose.
|
Perform an I/O request and wait for its finish |
|
|
Initiate an I/O command |
|
|
Wait for completion of an I/O request |
|
|
Attempt to abort an in-progress I/O request |