Mercurial > hg > Members > kono > Cerium
changeset 644:5e1a477fcaec
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 21 Nov 2009 10:59:51 +0900 |
parents | bffdede05f1e |
children | 07bd86a352eb |
files | TaskManager/Fifo/FifoDmaManager.cc TaskManager/Fifo/FifoTaskManagerImpl.cc TaskManager/kernel/ppe/MailManager.cc |
diffstat | 3 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Fifo/FifoDmaManager.cc Sat Nov 21 10:57:37 2009 +0900 +++ b/TaskManager/Fifo/FifoDmaManager.cc Sat Nov 21 10:59:51 2009 +0900 @@ -31,7 +31,7 @@ mail_sendQueue = MailManager::append_mailQueue(mail_sendQueue, mailManager->create(data)); -#if 1 +#if 0 if (MailManager::length(mail_sendQueue)== -1) { fprintf(stderr,"Mail Queue Error %s\n",__FUNCTION__); exit(1);
--- a/TaskManager/Fifo/FifoTaskManagerImpl.cc Sat Nov 21 10:57:37 2009 +0900 +++ b/TaskManager/Fifo/FifoTaskManagerImpl.cc Sat Nov 21 10:59:51 2009 +0900 @@ -175,7 +175,7 @@ mainScheduler->run(); } out_mail_list = mainScheduler->recv_mailList(); -#if 1 +#if 0 if (MailManager::length(out_mail_list )==-1) { fprintf(stderr, "Error on mail list %s\n",__FUNCTION__); exit(0);
--- a/TaskManager/kernel/ppe/MailManager.cc Sat Nov 21 10:57:37 2009 +0900 +++ b/TaskManager/kernel/ppe/MailManager.cc Sat Nov 21 10:59:51 2009 +0900 @@ -59,10 +59,12 @@ void MailManager::free(MailQueuePtr q) { +#if 0 if (MailManager::find(q,freeMailQueue)) { fprintf(stderr,"double free %s\n",__FUNCTION__); return; } +#endif q->next = freeMailQueue; freeMailQueue = q; } @@ -73,18 +75,12 @@ { MailQueuePtr q; -#if 0 - for (q = mailQueuePool; q; q = q->next) { - free(q); - } -#else q = mailQueuePool; while (q) { MailQueuePtr tmp = q->next; free(q); q = tmp; } -#endif freeMailQueue = mailQueuePool = NULL; }