From 91b13a0dff056b444d8fd0c2a5baae75e9d6208b Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Thu, 10 May 2012 16:14:15 -0400 Subject: [PATCH] Revert "Fix 100% cpu usage on osx bug" This reverts commit 8f9123a157d0ef479f62eb3e05da2ba6613c5dfc. --- src/util.h | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/util.h b/src/util.h index c3a0efe..5f8d037 100644 --- a/src/util.h +++ b/src/util.h @@ -274,9 +274,8 @@ typedef CMutexLock 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) \ -- 1.7.1