From 6887900ae033add30ee0151b72abe927c5239588 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 2 Aug 2017 17:12:47 -0700 Subject: More reliable taskq fini; avoids deadlock during shutdown. --- 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 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.) -- cgit v1.2.3-70-g09d2