From 2a2d8318c3a4dab869dfbebb3963a6c7dbd96f24 Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 20 Dec 2001 20:27:36 +0000 Subject: Debug in taskman. --- lib/TaskMan.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/TaskMan.cc b/lib/TaskMan.cc index be66df3..5b29d1c 100644 --- a/lib/TaskMan.cc +++ b/lib/TaskMan.cc @@ -147,7 +147,7 @@ void TaskMan::MainLoop() throw (GeneralException) { if (stopped) return; -// cerr << "-=- TaskMan: begin main loop with " << number << " task to manage.\n"; + cerr << "-=- TaskMan: begin main loop with " << number << " task to manage.\n"; no_burst = 0; while (!no_burst) { @@ -159,7 +159,7 @@ void TaskMan::MainLoop() throw (GeneralException) { // cerr << "-=- TaskMan: task " << t->GetName() << endl; if (t->GetState() == TASK_BURST) { -// cerr << "-=- TaskMan: running burning task " << t->GetName() << endl; + cerr << "-=- TaskMan: running burning task " << t->GetName() << endl; t->Run(); /* if the task added some new tasks, we have to rerun the loop */ no_burst = 0; @@ -276,7 +276,7 @@ void TaskMan::MainLoop() throw (GeneralException) { touched = false; if ((p->ha->GetHandle() == fd) && (!p->T->IsStopped()) && (p->T->GetState() != TASK_DONE) && (!p->dirthy)) { // We've got one, launch it. -// cerr << "-=- TaskMan: launching task " << p->T->GetName() << " for handle " << p->ha->GetHandle() << endl; + cerr << "-=- TaskMan: launching task " << p->T->GetName() << " for handle " << p->ha->GetHandle() << endl; w4ha_t w4 = *p; p->dirthy = true; @@ -322,7 +322,7 @@ void TaskMan::MainLoop() throw (GeneralException) { } if ((o = t->WaitedBy())) { -// cerr << "-=- TaskMan: running task " << o->GetName() << " for task " << t->GetName() << endl; + cerr << "-=- TaskMan: running task " << o->GetName() << " for task " << t->GetName() << endl; o->Run(); if (o->GetState() == TASK_DONE) { -- cgit v1.2.3