From 3fd43c488b47874db22a87a1d87eed94bbd85725 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 1 Jan 2017 14:34:29 -0800 Subject: Pipe simplifications for thread management. This may also address a race in closing down pipes. Now pipes are always registered with the socket. They also always have both a sender and receiver thread. If the protocol doesn't need one or the other, the stock thread just exits early. --- src/core/thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/thread.h') diff --git a/src/core/thread.h b/src/core/thread.h index 062941a1..8ef463e5 100644 --- a/src/core/thread.h +++ b/src/core/thread.h @@ -27,7 +27,7 @@ typedef struct { nni_plat_mtx mtx; nni_plat_cv cv; nni_thr_func fn; - void *arg; + void * arg; int start; int stop; int done; @@ -49,4 +49,4 @@ extern int nni_thr_init(nni_thr *thr, nni_thr_func fn, void *arg); extern void nni_thr_fini(nni_thr *thr); extern void nni_thr_run(nni_thr *thr); -#endif CORE_THREAD_H \ No newline at end of file +#endif CORE_THREAD_H -- cgit v1.2.3-70-g09d2