summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <Pixel>2001-12-20 20:27:36 +0000
committerPixel <Pixel>2001-12-20 20:27:36 +0000
commit2a2d8318c3a4dab869dfbebb3963a6c7dbd96f24 (patch)
tree82db51294f2f271e36868a3649aaa6c5a876e037
parent9fbdf0250fd385b711a84a8fb3dcc2df1463436a (diff)
Debug in taskman.
-rw-r--r--lib/TaskMan.cc8
1 files changed, 4 insertions, 4 deletions
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) {