diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-19 18:34:59 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-19 18:34:59 -0700 |
| commit | 88fb04f61918b06e6e269c1960058c3df5e0a0ef (patch) | |
| tree | 447c44bae8e2fd93d95b04fe8ab83bf02314eaef /src/core/taskq.h | |
| parent | fa24bad0f7f82b4718cc2f13f60fcdd9b0cf86fe (diff) | |
| download | nng-88fb04f61918b06e6e269c1960058c3df5e0a0ef.tar.gz nng-88fb04f61918b06e6e269c1960058c3df5e0a0ef.tar.bz2 nng-88fb04f61918b06e6e269c1960058c3df5e0a0ef.zip | |
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.
Diffstat (limited to 'src/core/taskq.h')
| -rw-r--r-- | src/core/taskq.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
