diff options
author | root <root> | 2011-07-20 01:04:03 +0000 |
---|---|---|
committer | root <root> | 2011-07-20 01:04:03 +0000 |
commit | d257952e595fa31f3c1331f6607f17deb20faf35 (patch) | |
tree | c66a1613396a4e435aaed1e4985b5a26f05034e8 | |
parent | 8a3ce7e75f92b4e43f6ab8171559b7f282066f20 (diff) |
temporary fence hack
-rw-r--r-- | ev.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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; |