diff options
author | Pixel <pixel@nobis-crew.org> | 2012-04-08 01:21:47 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2012-04-08 01:56:15 -0700 |
commit | 9f0431d84807e37bfa63bd144dcb4d2235fe7772 (patch) | |
tree | 2dd90832af0f4dd6692df03be45e13a8b39588f4 /src/TaskMan.cc | |
parent | e719749e399fc4490fdaf471a000dc841d576c73 (diff) |
Putting the bases for stackless co-routines.
Also cleaning up some code, clarifying some concepts, and adding more exception catchers.
Diffstat (limited to 'src/TaskMan.cc')
-rw-r--r-- | src/TaskMan.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |