From 5633a467a009945a4f1eb06f7ffe9f02b833567f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 17 Jan 2017 19:57:56 -0800 Subject: Pipe IDs are now tracked on global ID hashes. --- src/core/thread.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/core/thread.h') diff --git a/src/core/thread.h b/src/core/thread.h index 44f5c9e4..48da4bf0 100644 --- a/src/core/thread.h +++ b/src/core/thread.h @@ -12,17 +12,15 @@ #include "core/nng_impl.h" -typedef struct { +struct nni_mtx { nni_plat_mtx mtx; -} nni_mtx; +}; -typedef struct { +struct nni_cv { nni_plat_cv cv; -} nni_cv; +}; -typedef void (*nni_thr_func)(void *); - -typedef struct { +struct nni_thr { nni_plat_thr thr; nni_plat_mtx mtx; nni_plat_cv cv; @@ -32,7 +30,7 @@ typedef struct { int stop; int done; int init; -} nni_thr; +}; // nni_mtx_init initializes the mutex. (Win32 programmers take note; // our mutexes are actually CriticalSections on Win32.) -- cgit v1.2.3-70-g09d2