Получить статус ошибки асинхронной операции ввода/вывода
#include <aio.h>int aio_error( const struct aiocb *aiocbptr );
libc
The aio_error() function returns the error status associated with the struct aiocb referenced by the aiocbptr argument. The error status for an asynchronous I/O operation is the errno value that's set by the corresponding read(), write(), or fsync() operation. If the operation hasn't yet been completed, the error status is EINPROGRESS
.
0
if the operation was completed successfully EINPROGRESS
if the operation hasn't yet been completed
POSIX 1003.1 AIO
The first time you call an aio_*() function, a thread pool is created, making your process multithreaded if it isn't already. The thread pool isn't destroyed until your process ends.
aio_cancel(), aio_fsync(), aio_read(), aio_return(), aio_suspend(), aio_write(), struct aiocb
Предыдущий раздел: Описание API системной библиотеки