diff TaskManager/kernel/ppe/TaskManagerImpl.cc @ 1142:801d57ae1e29 draft

cut compile CreatePolygonTask on spe side because not enough spe memory. We have to use code loading. And I found light error. see you tomorrow. (This version can work Mac OSX and Cell arch.)
author yutaka@localhost.localdomain
date Thu, 17 Feb 2011 05:23:34 +0900
parents 23dab670c5aa
children 279b41354753
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/TaskManagerImpl.cc	Thu Feb 17 20:28:26 2011 +0900
+++ b/TaskManager/kernel/ppe/TaskManagerImpl.cc	Thu Feb 17 05:23:34 2011 +0900
@@ -1,4 +1,4 @@
-#include <stdio.h>
+//#include <stdio.h>
 #include "TaskManagerImpl.h"
 #include "types.h"
 #include "error.h"
@@ -68,7 +68,7 @@
 #ifdef EARLY_TOUCH
         if (rbuf) {
 	    if ((unsigned long)rbuf&0xf) {
-	      printf("Data is not aligned. command = %d, addr = 0x%lx, size = %ld\n",
+	      this->printf("Data is not aligned. command = %d, addr = 0x%lx, size = %ld\n",
 		     cmd, (unsigned long)rbuf, r_size);
 	    }
 	    char *p = (char *)rbuf; char b = *p;
@@ -76,7 +76,7 @@
         }
         if (wbuf) {
 	    if ((unsigned long)wbuf&0xf) {
-	      printf("Data is not aligned. command = %d, addr = 0x%lx, size = %ld\n",
+	      this->printf("Data is not aligned. command = %d, addr = 0x%lx, size = %ld\n",
 		     cmd, (unsigned long)wbuf, w_size);
 	    }
 	    char *p = (char *)wbuf; char b = *p;
@@ -236,11 +236,11 @@
 check_wait(TaskManagerImpl *tm, QueueInfo<TaskQueue> *wait_i) {
     for(TaskQueue *t = wait_i->getFirst(); t; t = wait_i->getNext(t)) {
 	if (!tm->waitTaskQueue->find(t->task)) {
-	    printf("stray waiting task%d %lx\n",t->task->command, (long)t->task);
+	    this->printf("stray waiting task%d %lx\n",t->task->command, (long)t->task);
 	} else if (tm->activeTaskQueue->find(t->task)) {
-	    printf(" active task%d in waiting queue %lx\n",t->task->command, (long)t->task);
+	    this->printf(" active task%d in waiting queue %lx\n",t->task->command, (long)t->task);
 	} else
-	    printf(".");
+	    this->printf(".");
     }
 }
 #endif