From d257952e595fa31f3c1331f6607f17deb20faf35 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 20 Jul 2011 01:04:03 +0000 Subject: temporary fence hack --- ev.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ev.c b/ev.c index 0c4e189..52676da 100644 --- a/ev.c +++ b/ev.c @@ -513,10 +513,6 @@ struct signalfd_siginfo #define ECB_MEMORY_FENCE __sync_synchronize () #define ECB_MEMORY_FENCE_ACQUIRE ({ char dummy = 0; __sync_lock_test_and_set (&dummy, 1); }) #define ECB_MEMORY_FENCE_RELEASE ({ char dummy = 1; __sync_lock_release (&dummy ); }) - #elif _MSC_VER >= 1400 - #define ECB_MEMORY_FENCE do { } while (0) - #define ECB_MEMORY_FENCE_ACQUIRE ECB_MEMORY_FENCE - #define ECB_MEMORY_FENCE_RELEASE ECB_MEMORY_FENCE #elif defined(_WIN32) && defined(MemoryBarrier) #define ECB_MEMORY_FENCE MemoryBarrier () #define ECB_MEMORY_FENCE_ACQUIRE ECB_MEMORY_FENCE @@ -1462,7 +1458,7 @@ inline_speed void evpipe_write (EV_P_ EV_ATOMIC_T *flag) { if (expect_true (*flag)) - return; + /*return*//*D*/; *flag = 1; -- cgit v1.2.3