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()
Note
|
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. |