summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2012-02-04 17:57:55 +0000
committerroot <root>2012-02-04 17:57:55 +0000
commit8bd5d2a25946234c4a1fe548d2422e45a7525b76 (patch)
treeb1d0d01ada5d32829164d3c2d034f818f4d643a3 /ev.c
parenta5ab33589c68cbd203d0fd85e551b33f61ff062e (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c15
1 files changed, 15 insertions, 0 deletions
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 <sys/time.h>
# include <sys/wait.h>
@@ -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