#include <nng/nng.h>
bool nng_aio_busy(nng_aio *aio);
This documentation is for the TIP (development tree) of NNG and may represent unreleased changes or functionality that is experimental, and is subject to change before release. The latest released version is v1.8.0. See the documentation for v1.8.0 for the most up-to-date information. |
nng_aio_busy(3)
NAME
nng_aio_busy - test if asynchronous I/O is busy
SYNOPSIS
DESCRIPTION
The nng_aio_busy()
function returns true if the
aio is currently busy performing an asynchronous I/O
operation or is executing a completion callback.
If no operation has been started, or the operation has been completed or canceled, and any callback has been executed, then it returns false.
This is the same test used internally by
nng_aio_wait()
Care should be taken to ensure that the aio object is not freed when using this function. The caller is responsible for coordinating any use of this with any reuse of the aio. |
RETURN VALUES
True if the aio is busy, false otherwise.
ERRORS
None.