Revert "Fix 100% cpu usage on osx bug"
authorGavin Andresen <gavinandresen@gmail.com>
Thu, 10 May 2012 20:14:15 +0000 (16:14 -0400)
committerGavin Andresen <gavinandresen@gmail.com>
Thu, 10 May 2012 20:14:15 +0000 (16:14 -0400)
This reverts commit 8f9123a157d0ef479f62eb3e05da2ba6613c5dfc.

src/util.h

index c3a0efe..5f8d037 100644 (file)
@@ -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) \