From Richard Gregory · 1996-04-13 07:20 · #75601 in AMOS_ECHO
In reply to Aborting IORequests by Joseph Walton
Hello Joseph,
In a message on 8 Apr 96, you wrote to all:
JW> I need to make sure that a couple of IORequests have finished, so I'm
JW> AbortIO()ing and then WaitIO()ing them. Fine - unless they weren't used
JW> before this point in time.
The most bullet proof method I've come to use is:
if( !CheckIO(pointer) )
{
AbortIO(pointer);
WaitIO(pointer);
}
This will only try to abort the IO if its doing something.
Richard
--- Blue Wave v1.0
* Origin: Xstream 44-151-488-0698 V21-V34 [OS2/Max3.00/Md1.02e] (2:250/210)