From 88fb04f61918b06e6e269c1960058c3df5e0a0ef Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 19 Jul 2017 18:34:59 -0700 Subject: Always run the AIO completion logic. We have seen some yet another weird situation where we had an orphaned pipe, which was caused by not completing the callback. If we are going to run nni_aio_fini, we should still run the callback (albeit with a return value of NNG_ECANCELED or somesuch) to be sure that we can't orphan stuff. --- 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 f1e29a34..e6399706 100644 --- a/src/core/taskq.h +++ b/src/core/taskq.h @@ -28,6 +28,7 @@ extern void nni_taskq_fini(nni_taskq *); extern int nni_taskq_dispatch(nni_taskq *, nni_taskq_ent *); extern int nni_taskq_cancel(nni_taskq *, nni_taskq_ent *); +extern void nni_taskq_wait(nni_taskq *, nni_taskq_ent *); extern void nni_taskq_ent_init(nni_taskq_ent *, nni_cb, void *); extern int nni_taskq_sys_init(void); -- cgit v1.2.3-70-g09d2