changeset 1010:44b2c4cb539d

fix
author yutaka@localhost.localdomain
date Thu, 28 Oct 2010 17:40:13 +0900
parents c67379f9d411
children 46c54dd20d1c 80b18af207c2 431936c0cc96
files TaskManager/Cell/spe/CellDmaManager.cc TaskManager/Makefile.def
diffstat 2 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/Cell/spe/CellDmaManager.cc	Thu Oct 28 13:00:51 2010 +0900
+++ b/TaskManager/Cell/spe/CellDmaManager.cc	Thu Oct 28 17:40:13 2010 +0900
@@ -5,7 +5,7 @@
 
 
 unsigned long long alloc_flag = 0;
-
+// singleton
 QueueInfo<MailQueue> *MailPool = new QueueInfo<MailQueue>() ;
 
 /**
@@ -95,8 +95,8 @@
           spu_write_out_mbox((uint32)data);
       } else {
 	  MailQueuePtr mail = mail_queue->poll();
-	  if (mail == NULL) {
-	    printf("あっるえぇー、おっかっしぃぞぉー\n");
+	  if (0 == mail->data) {
+	    printf("hoge\n");
 	  }
 	  spu_write_out_mbox((uint32)mail->data);
 	  mail_queue->free_(mail);
@@ -159,8 +159,7 @@
 CellDmaManager::CellDmaManager() 
 {
 
-  mail_queue = new QueueInfo<MailQueue>(MailPool);
-
+    mail_queue = new QueueInfo<MailQueue>(MailPool);
     stop_profile();
 }
 void
--- a/TaskManager/Makefile.def	Thu Oct 28 13:00:51 2010 +0900
+++ b/TaskManager/Makefile.def	Thu Oct 28 17:40:13 2010 +0900
@@ -29,7 +29,7 @@
 
 ABIBIT = 32
 
-OPT = -g -O9 -DMAIL_QUEUE
+OPT = -g -O9 #-DMAIL_QUEUE
 # -DEARLY_TOUCH
 # -g -DTASK_LIST_MAIL -O9