diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-02 17:12:47 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-02 17:12:47 -0700 |
| commit | 6887900ae033add30ee0151b72abe927c5239588 (patch) | |
| tree | 4200a7f9417cb0e05878bec60bc25413518ba982 /src/core/taskq.h | |
| parent | f77959593417a3b1bac02f4b17003febca400c17 (diff) | |
| download | nng-6887900ae033add30ee0151b72abe927c5239588.tar.gz nng-6887900ae033add30ee0151b72abe927c5239588.tar.bz2 nng-6887900ae033add30ee0151b72abe927c5239588.zip | |
More reliable taskq fini; avoids deadlock during shutdown.
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 89b7be4a..40b5dc00 100644 --- a/src/core/taskq.h +++ b/src/core/taskq.h @@ -28,6 +28,7 @@ struct nni_task { extern int nni_taskq_init(nni_taskq **, int); extern void nni_taskq_fini(nni_taskq *); +extern void nni_taskq_drain(nni_taskq *); // nni_task_dispatch sends the task to the queue. It is guaranteed to // succeed. (If the queue is shutdown, then the behavior is undefined.) |
