From 10d0f503fb68946c265bad18dd755fdc816075c1 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 17 Oct 2011 21:02:52 -0700 Subject: Adding an early version of the 'engine debug' facility. --- src/TaskMan.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/TaskMan.cc') 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(); } -- cgit v1.2.3