diff options
Diffstat (limited to 'src/core/aio.h')
| -rw-r--r-- | src/core/aio.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/aio.h b/src/core/aio.h index d1d4cf79..6315e90c 100644 --- a/src/core/aio.h +++ b/src/core/aio.h @@ -1,5 +1,5 @@ // -// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2022 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a @@ -93,6 +93,10 @@ extern int nni_aio_result(nni_aio *); // completed. extern size_t nni_aio_count(nni_aio *); +// nni_aio_busy returns true if the aio is still busy processing work. +// This is a non-blocking form of the check used by nni_aio_wait(). +extern bool nni_aio_busy(nni_aio *); + // nni_aio_wait blocks the caller until the operation is complete. // The operation must have already been started. This routine will // block until the AIO, as well as any callback, has completed execution. |
