This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Wait for asynchronous I/O operations to complete
Asynchronous I/O operations aren't currently supported. |
#include <aio.h> int aio_suspend( const struct aiocb * const list[], int nent, const struct timespec * timeout );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The aio_suspend() function suspends the calling thread until at least one of the asynchronous I/O operations referenced by the list argument has completed, until a signal interrupts the function, or, if timeout isn't NULL, until the time interval specified by timeout has passed.
-1; errno is set.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |