aboutsummaryrefslogtreecommitdiff
path: root/src/core/platform.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-07 18:41:56 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-07 18:41:56 -0700
commit3cedf14c3586b0770cb9ee62c75f922ab2006153 (patch)
tree2fd6422cd97f91330896a47ba5e68c20705f2c28 /src/core/platform.h
parent021d09af1375834fe9aaca916e60dcd2ad3be845 (diff)
downloadnng-3cedf14c3586b0770cb9ee62c75f922ab2006153.tar.gz
nng-3cedf14c3586b0770cb9ee62c75f922ab2006153.tar.bz2
nng-3cedf14c3586b0770cb9ee62c75f922ab2006153.zip
SRWLocks FTW!
Modern Windows (Vista and later) have light weight Slim Read/Write locks which only occupy 64 bits, and don't require any memory allocation to create. While here clean up a few more unreferenced variables found with the Microsoft compilers.
Diffstat (limited to 'src/core/platform.h')
-rw-r--r--src/core/platform.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/platform.h b/src/core/platform.h
index 11a01abb..107b180e 100644
--- a/src/core/platform.h
+++ b/src/core/platform.h
@@ -76,9 +76,9 @@ extern void *nni_alloc(size_t);
// Most implementations can just call free() here.
extern void nni_free(void *, size_t);
-typedef struct nni_plat_mtx nni_plat_mtx;
-typedef struct nni_plat_cv nni_plat_cv;
-typedef struct nni_plat_thr nni_plat_thr;
+typedef struct nni_plat_mtx nni_plat_mtx;
+typedef struct nni_plat_cv nni_plat_cv;
+typedef struct nni_plat_thr nni_plat_thr;
//
// Threading & Synchronization Support