Mercurial > hg > Game > Cerium
changeset 1010:ac1230957339 draft
fix
author | yutaka@localhost.localdomain |
---|---|
date | Thu, 28 Oct 2010 17:40:13 +0900 |
parents | 16afbf03e5d2 |
children | 3a648f8f5d77 29355ae40e6c a9581a9df440 |
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