Mercurial > hg > bitcoin
changeset 2494:76a3c51e236c draft
Revert "Fix 100% cpu usage on osx bug"
This reverts commit 8f9123a157d0ef479f62eb3e05da2ba6613c5dfc.
author | Gavin Andresen <gavinandresen@gmail.com> |
---|---|
date | Thu, 10 May 2012 16:14:15 -0400 |
parents | 6ddd0dc10af0 |
children | b570f6f9e37b |
files | src/util.h |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/util.h +++ b/src/util.h @@ -274,9 +274,8 @@ 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) \