From 3cedf14c3586b0770cb9ee62c75f922ab2006153 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 7 Jul 2017 18:41:56 -0700 Subject: 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. --- src/platform/posix/posix_config.h | 2 +- src/platform/posix/posix_pollq.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/platform/posix') diff --git a/src/platform/posix/posix_config.h b/src/platform/posix/posix_config.h index 1fe4d1a9..7e82a050 100644 --- a/src/platform/posix/posix_config.h +++ b/src/platform/posix/posix_config.h @@ -63,4 +63,4 @@ #define NNG_USE_POSIX_POLLQ_POLL 1 #define NNG_USE_POSIX_RESOLV_GAI 1 -#endif // PLATFORM_POSIX \ No newline at end of file +#endif // PLATFORM_POSIX diff --git a/src/platform/posix/posix_pollq.h b/src/platform/posix/posix_pollq.h index a04d1ef2..224bf765 100644 --- a/src/platform/posix/posix_pollq.h +++ b/src/platform/posix/posix_pollq.h @@ -42,6 +42,6 @@ extern void nni_posix_pollq_cancel(nni_posix_pollq *, nni_posix_pollq_node *); extern int nni_posix_pollq_sysinit(void); extern void nni_posix_pollq_sysfini(void); -#endif // PLATFORM_POSIX +#endif // PLATFORM_POSIX -#endif // PLATFORM_POSIX_POLLQ_H +#endif // PLATFORM_POSIX_POLLQ_H -- cgit v1.2.3-70-g09d2