Using aiowait
()
A call to aiowait
()
blocks the calling process until
at least one outstanding asynchronous I/O operation is completed. The timeout
parameter points to a maximum interval to wait for I/O completion. A timeout
value of zero specifies that no wait is wanted. The aiowait
()
command
returns a pointer to the aio_result_t
structure for the
completed operation.