From ca1522e3cb60c8f45483be92af19982ded77676d Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 18 Feb 2008 10:00:21 +0000 Subject: Avoiding 100% CPU all the time. --- lib/TaskMan.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/TaskMan.cc b/lib/TaskMan.cc index ee7958b..48cead4 100644 --- a/lib/TaskMan.cc +++ b/lib/TaskMan.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: TaskMan.cc,v 1.54 2008-02-18 09:55:08 pixel Exp $ */ +/* $Id: TaskMan.cc,v 1.55 2008-02-18 10:00:21 pixel Exp $ */ #ifndef _WIN32 #include @@ -587,9 +587,8 @@ void TaskMan::MainLoop() throw (GeneralException) { if (t->Yielded()) { t->Unyield(); - } - - got_yield = true; + got_yield = true; + } } /* Let's compute the nearest timeout, and run a round trip for expired timeouts. */ -- cgit v1.2.3