aboutsummaryrefslogtreecommitdiff
path: root/src/core/taskq.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-07 11:44:22 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-07 11:56:22 -0800
commit71e459eea31e9e47c0ce64a78e32b242d357f9a0 (patch)
treec4f6608066aaa6505a5625f399c94845abe6c162 /src/core/taskq.h
parent8fa3b2aa8e9191669f137be39ba61ad39243483a (diff)
downloadnng-71e459eea31e9e47c0ce64a78e32b242d357f9a0.tar.gz
nng-71e459eea31e9e47c0ce64a78e32b242d357f9a0.tar.bz2
nng-71e459eea31e9e47c0ce64a78e32b242d357f9a0.zip
fini: add drain mechanism for aio, reap, and task subsystems
Make sure *everything* is drained before proceeding all the way to deallocation.
Diffstat (limited to 'src/core/taskq.h')
-rw-r--r--src/core/taskq.h1
1 files changed, 1 insertions, 0 deletions
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