diff options
Diffstat (limited to 'src/core/thread.h')
| -rw-r--r-- | src/core/thread.h | 14 |
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.) |
