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/taskq.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/taskq.h') diff --git a/src/core/taskq.h b/src/core/taskq.h index 498b4f37..d3299433 100644 --- a/src/core/taskq.h +++ b/src/core/taskq.h @@ -62,6 +62,7 @@ extern void nni_task_init(nni_task *, nni_taskq *, nni_cb, void *); extern void nni_task_fini(nni_task *); extern int nni_taskq_sys_init(nng_init_params *); +extern bool nni_taskq_sys_drain(void); extern void nni_taskq_sys_fini(void); // nni_task implementation details are not to be used except by the -- cgit v1.2.3-70-g09d2