From 71e459eea31e9e47c0ce64a78e32b242d357f9a0 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 7 Dec 2024 11:44:22 -0800 Subject: fini: add drain mechanism for aio, reap, and task subsystems Make sure *everything* is drained before proceeding all the way to deallocation. --- src/core/aio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/aio.h') diff --git a/src/core/aio.h b/src/core/aio.h index f8c6730f..f56d2f58 100644 --- a/src/core/aio.h +++ b/src/core/aio.h @@ -193,7 +193,7 @@ extern void nni_aio_completions_add( nni_aio_completions *, nni_aio *, int, size_t); extern int nni_aio_sys_init(nng_init_params *); -extern void nni_aio_sys_stop(void); +extern bool nni_aio_sys_drain(void); extern void nni_aio_sys_fini(void); typedef struct nni_aio_expire_q nni_aio_expire_q; -- cgit v1.2.3-70-g09d2