diff options
author | pixel <pixel> | 2008-02-18 10:00:21 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-02-18 10:00:21 +0000 |
commit | ca1522e3cb60c8f45483be92af19982ded77676d (patch) | |
tree | 5c413ff6c9bea2128700c6afbb6ce12e12ae97c2 /lib/TaskMan.cc | |
parent | 2677424e6dd5513b3fae9817214db41cc211a873 (diff) |
Avoiding 100% CPU all the time.
Diffstat (limited to 'lib/TaskMan.cc')
-rw-r--r-- | lib/TaskMan.cc | 7 |
1 files 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 <signal.h> @@ -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. */ |