aboutsummaryrefslogtreecommitdiff
path: root/src/platform/windows/win_debug.c
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/platform/windows/win_debug.c
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/platform/windows/win_debug.c')
-rw-r--r--src/platform/windows/win_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platform/windows/win_debug.c b/src/platform/windows/win_debug.c
index a4edef0d..43db0505 100644
--- a/src/platform/windows/win_debug.c
+++ b/src/platform/windows/win_debug.c
@@ -77,6 +77,7 @@ nni_plat_errno(int errnum)
return (NNG_ESYSERR + errnum);
}
+
// Windows has infinite numbers of error codes it seems. We only bother
// with the ones that are relevant to us (we think). Note that there is
// no overlap between errnos and GetLastError values.