summaryrefslogtreecommitdiff
path: root/src/core/thread.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-17 19:57:56 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-17 19:57:56 -0800
commit5633a467a009945a4f1eb06f7ffe9f02b833567f (patch)
treee0010755849424d1bc2b43940f537b5757052ebf /src/core/thread.h
parenta00f1938497e629187ebc6035e03bb58d1017730 (diff)
downloadnng-5633a467a009945a4f1eb06f7ffe9f02b833567f.tar.gz
nng-5633a467a009945a4f1eb06f7ffe9f02b833567f.tar.bz2
nng-5633a467a009945a4f1eb06f7ffe9f02b833567f.zip
Pipe IDs are now tracked on global ID hashes.
Diffstat (limited to 'src/core/thread.h')
-rw-r--r--src/core/thread.h14
1 files changed, 6 insertions, 8 deletions
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.)