From 9f0431d84807e37bfa63bd144dcb4d2235fe7772 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 8 Apr 2012 01:21:47 -0700 Subject: Putting the bases for stackless co-routines. Also cleaning up some code, clarifying some concepts, and adding more exception catchers. --- src/TaskMan.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/TaskMan.cc') diff --git a/src/TaskMan.cc b/src/TaskMan.cc index 97732e4..048b27a 100644 --- a/src/TaskMan.cc +++ b/src/TaskMan.cc @@ -261,7 +261,7 @@ int Balau::TaskMan::mainLoop() { // let's check who got signaled, and call them for (Task * t : m_signaledTasks) { Printer::elog(E_TASK, "TaskMan at %p Switching to task %p (%s - %s) that got signaled somehow.", this, t, t->getName(), ClassName(t).c_str()); - IAssert(t->getStatus() == Task::IDLE || t->getStatus() == Task::YIELDED, "We're switching to a non-idle/yielded task at %p... ? status = %i", t, t->getStatus()); + IAssert(t->getStatus() == Task::SLEEPING || t->getStatus() == Task::YIELDED, "We're switching to a non-sleeping/yielded task at %p... ? status = %i", t, t->getStatus()); bool wasYielded = t->getStatus() == Task::YIELDED; t->switchTo(); if ((t->getStatus() == Task::STOPPED) || (t->getStatus() == Task::FAULTED)) { -- cgit v1.2.3