diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-06-08 22:56:45 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-06-08 22:56:45 -0700 |
| commit | 23898a85c30d8f4f230303c362e91074a2b29b71 (patch) | |
| tree | 4777d63a25cf229ea65465978013721b36633b10 /src/core/taskq.h | |
| parent | 402c355eee701976a6c8ee00f6a915d1e417e163 (diff) | |
| download | nng-23898a85c30d8f4f230303c362e91074a2b29b71.tar.gz nng-23898a85c30d8f4f230303c362e91074a2b29b71.tar.bz2 nng-23898a85c30d8f4f230303c362e91074a2b29b71.zip | |
Fix taskq_cancel race.
Diffstat (limited to 'src/core/taskq.h')
| -rw-r--r-- | src/core/taskq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/taskq.h b/src/core/taskq.h index 931e6c77..7f717c3c 100644 --- a/src/core/taskq.h +++ b/src/core/taskq.h @@ -27,7 +27,7 @@ extern int nni_taskq_init(nni_taskq **, int); extern void nni_taskq_fini(nni_taskq *); extern int nni_taskq_dispatch(nni_taskq *, nni_taskq_ent *); -extern int nni_taskq_cancel(nni_taskq_ent *); +extern int nni_taskq_cancel(nni_taskq *, nni_taskq_ent *); extern void nni_taskq_ent_init(nni_taskq_ent *, nni_cb, void *); extern int nni_taskq_sys_init(void); |
