aboutsummaryrefslogtreecommitdiff
path: root/src/core/aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/aio.c')
-rw-r--r--src/core/aio.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/aio.c b/src/core/aio.c
index 65d8b984..771cbc95 100644
--- a/src/core/aio.c
+++ b/src/core/aio.c
@@ -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
@@ -314,6 +314,12 @@ nni_aio_wait(nni_aio *aio)
nni_task_wait(&aio->a_task);
}
+bool
+nni_aio_busy(nni_aio *aio)
+{
+ return (nni_task_busy(&aio->a_task));
+}
+
int
nni_aio_begin(nni_aio *aio)
{