summaryrefslogtreecommitdiff
path: root/src/TaskMan.cc
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-10-17 21:02:52 -0700
committerPixel <pixel@nobis-crew.org>2011-10-17 21:02:52 -0700
commit10d0f503fb68946c265bad18dd755fdc816075c1 (patch)
tree3c6b02f2f7e27abd42adf580c1b3ecc97386613a /src/TaskMan.cc
parent6bd1e79d98f95115c356a9e3e7fdb02dcf221a4e (diff)
Adding an early version of the 'engine debug' facility.
Diffstat (limited to 'src/TaskMan.cc')
-rw-r--r--src/TaskMan.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/TaskMan.cc b/src/TaskMan.cc
index 5a0c1c1..aa8425d 100644
--- a/src/TaskMan.cc
+++ b/src/TaskMan.cc
@@ -45,6 +45,8 @@ void Balau::TaskMan::mainLoop() {
Task * t;
bool noWait = false;
+ Printer::elog(E_TASK, "TaskMan::mainLoop() with m_tasks.size = %i", m_tasks.size());
+
// checking "STARTING" tasks, and running them once; also try to build the status of the noWait boolean.
for (iH = m_tasks.begin(); iH != m_tasks.end(); iH++) {
t = *iH;
@@ -69,6 +71,8 @@ void Balau::TaskMan::mainLoop() {
// let's check who got signaled, and call them
for (iH = m_signaledTasks.begin(); iH != m_signaledTasks.end(); iH++) {
t = *iH;
+ Printer::elog(E_TASK, "Switching to task %p (%s - %s) that got signaled somehow.", t, t->getName(), ClassName(t).c_str());
+ Assert(t->getStatus() == Task::IDLE);
t->switchTo();
}