aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-05-10 16:14:15 -0400
committerGavin Andresen <gavinandresen@gmail.com>2012-05-10 16:14:15 -0400
commit91b13a0dff056b444d8fd0c2a5baae75e9d6208b (patch)
tree621c382e3480b84c328bdd814f5ffe2865b7208c
parent8f9123a157d0ef479f62eb3e05da2ba6613c5dfc (diff)
Revert "Fix 100% cpu usage on osx bug"
This reverts commit 8f9123a157d0ef479f62eb3e05da2ba6613c5dfc.
-rw-r--r--src/util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index c3a0efe0a7..5f8d0375da 100644
--- a/src/util.h
+++ b/src/util.h
@@ -274,9 +274,8 @@ typedef CMutexLock<CWaitableCriticalSection> CWaitableCriticalBlock;
typedef boost::interprocess::interprocess_condition CConditionVariable;
/** Wait for a given condition inside a WAITABLE_CRITICAL_BLOCK */
-/** Sleep(1) is to workaround a 100% cpu-usage bug on OSX **/
#define WAIT(name,condition) \
- do { while(!(condition)) { (name).wait(waitablecriticalblock.GetLock()); Sleep(1);} } while(0)
+ do { while(!(condition)) { (name).wait(waitablecriticalblock.GetLock()); } } while(0)
/** Notify waiting threads that a condition may hold now */
#define NOTIFY(name) \