From 8bd5d2a25946234c4a1fe548d2422e45a7525b76 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 4 Feb 2012 17:57:55 +0000 Subject: *** empty log message *** --- ev.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ev.c') diff --git a/ev.c b/ev.c index c44327b..fe1b6ac 100644 --- a/ev.c +++ b/ev.c @@ -185,6 +185,17 @@ # include "ev.h" #endif +#if EV_NO_THREADS +# undef EV_NO_SMP +# define EV_NO_SMP 1 +# undef ECB_NO_THREADS +# define ECB_NO_THREADS 1 +#endif +#if EV_NO_SMP +# undef EV_NO_SMP +# define ECB_NO_SMP 1 +#endif + #ifndef _WIN32 # include # include @@ -536,6 +547,10 @@ struct signalfd_siginfo /* ECB_NO_THREADS - ecb is not used by multiple threads, ever */ /* ECB_NO_SMP - ecb might be used in multiple threads, but only on a single cpu */ +#if ECB_NO_THREADS +# define ECB_NO_SMP 1 +#endif + #if ECB_NO_THREADS || ECB_NO_SMP #define ECB_MEMORY_FENCE do { } while (0) #endif -- cgit v1.2.3