Mercurial > hg > Game > Cerium
diff TaskManager/kernel/ppe/TaskList.h @ 1464:3f2230d79eba draft
TaskList no compile errors
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Jul 2012 21:16:27 +0900 |
parents | f7e497c8e8a3 |
children | cb57420a8219 |
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/TaskList.h Sat Jul 14 20:44:23 2012 +0900 +++ b/TaskManager/kernel/ppe/TaskList.h Sat Jul 14 21:16:27 2012 +0900 @@ -12,7 +12,7 @@ public: BASE_NEW_DELETE(TaskList); - TaskList *lastTask; // 4 byte + Task *lastTask; // 4 byte TaskList *next; // 4 byte TaskList *prev; // 4 byte TaskList *waiter; // 4 byte @@ -20,7 +20,7 @@ long dummy[3]; // 16 byte Task tasks[TASK_MAX_SIZE]; // 32*TASK_MAX_SIZE - TaskPtr last() { return &tasks; } + TaskPtr last() { return lastTask; } void init() { lastTask = &tasks[TASK_MAX_SIZE]; waiter=this; } void initOnce() { } void freeOnce() {}