diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-10-06 22:33:45 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-10-06 22:33:45 -0700 |
| commit | 2592bfc8b7eb3dad7ca17bdd2e0c5ac7755dbab8 (patch) | |
| tree | 369de6c91edad34718ac98a2213b231bebb168ce /src/core/taskq.h | |
| parent | d0dc211c7b77a927c1ea315342239b09e5d8c2fe (diff) | |
| download | nng-2592bfc8b7eb3dad7ca17bdd2e0c5ac7755dbab8.tar.gz nng-2592bfc8b7eb3dad7ca17bdd2e0c5ac7755dbab8.tar.bz2 nng-2592bfc8b7eb3dad7ca17bdd2e0c5ac7755dbab8.zip | |
Actually enable UDP. Also fix some UWYI includes.
Diffstat (limited to 'src/core/taskq.h')
| -rw-r--r-- | src/core/taskq.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/taskq.h b/src/core/taskq.h index 2ff449cf..ccc54f61 100644 --- a/src/core/taskq.h +++ b/src/core/taskq.h @@ -13,6 +13,7 @@ #include "core/defs.h" #include "core/list.h" +#include "core/platform.h" typedef struct nni_taskq nni_taskq; typedef struct nni_task nni_task; @@ -51,7 +52,7 @@ extern bool nni_task_busy(nni_task *); // work is scheduled on the task then it will not return until that // work (or any other work subsequently scheduled) is complete. extern void nni_task_wait(nni_task *); -extern void nni_task_init(nni_task *, nni_taskq *, nni_cb, void *); +extern void nni_task_init(nni_task *, nni_taskq *, nni_cb, void *); // nni_task_fini destroys the task. It will reap resources asynchronously // if the task is currently executing. Use nni_task_wait() first if the @@ -67,9 +68,9 @@ extern void nni_taskq_sys_fini(void); // consuming structures. struct nni_task { nni_list_node task_node; - void * task_arg; + void *task_arg; nni_cb task_cb; - nni_taskq * task_tq; + nni_taskq *task_tq; unsigned task_busy; bool task_prep; nni_mtx task_mtx; |
