aio_return()

Вернуть статус завершения асинхронной операции ввода/вывода

Прототип:

#include <aio.h>
ssize_t aio_return( struct aiocb *aiocbptr );

Аргументы:

aiocbptr
A pointer to an asynchronous I/O control block of type struct aiocb whose return status you want to get.

Библиотека:

libc

Описание:

The aio_return() function returns the return status associated with the struct aiocb referenced by the aiocbptr argument. The return status for an asynchronous I/O operation is the value that's returned by the corresponding read(), write(), or fsync() operation.

You can call aio_return() exactly once to retrieve the return status of a given asynchronous operation; if you use the same struct aiocb for the same operation in a call to aio_return() or aio_error(), an error may be returned.

Возвращаемое значение:

The value that's returned by the corresponding read(), write(), or fsync() operation.

Коды ошибок:

EINVAL
The aiocbptr argument doesn't refer to an asynchronous operation whose return status hasn't yet been retrieved.

Классификация:

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_error(), aio_fsync(), aio_read(), aio_suspend(), aio_write(), struct aiocb, fsync(), read(), write(),




Предыдущий раздел: Описание API системной библиотеки