Mercurial > hg > Game > Cerium
changeset 19:98bb1b2bb71e
*** empty log message ***
author | gongo |
---|---|
date | Sun, 10 Feb 2008 13:23:29 +0900 |
parents | 0c9341da4522 |
children | 31a7ff27ee20 |
files | TaskManager/Fifo/MailManager.cc TaskManager/kernel/ppe/TaskInfo.cc include/TaskManager/MailManager.h |
diffstat | 3 files changed, 13 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Fifo/MailManager.cc Sun Feb 10 11:39:21 2008 +0900 +++ b/TaskManager/Fifo/MailManager.cc Sun Feb 10 13:23:29 2008 +0900 @@ -2,6 +2,12 @@ #include <stdlib.h> #include "MailManager.h" +MailManager::MailManager(void) +{ + mailQueuePool = NULL; + freeMailQueue = NULL; +} + int MailManager::init_pool_mailQueue(int num) {
--- a/TaskManager/kernel/ppe/TaskInfo.cc Sun Feb 10 11:39:21 2008 +0900 +++ b/TaskManager/kernel/ppe/TaskInfo.cc Sun Feb 10 13:23:29 2008 +0900 @@ -5,11 +5,7 @@ TaskInfo::TaskInfo(int num) { machineNum = num; -} -void -TaskInfo::init(void) -{ taskListPool = NULL; freeTaskList = NULL; @@ -20,7 +16,11 @@ taskPool = NULL; freeTask = NULL; +} +void +TaskInfo::init(void) +{ init_taskList(machineNum*2); init_taskQueue(TASK_MAX_SIZE*4); init_task(TASK_MAX_SIZE*2);
--- a/include/TaskManager/MailManager.h Sun Feb 10 11:39:21 2008 +0900 +++ b/include/TaskManager/MailManager.h Sun Feb 10 13:23:29 2008 +0900 @@ -8,6 +8,9 @@ class MailManager { public: + /* constructor */ + MailManager(void); + /* functions */ int init_pool_mailQueue(int num); int extend_pool_mailQueue(int num);