Mercurial > hg > Game > Cerium
view TaskManager/kernel/ppe/TaskList.h @ 958:338523ff6986 draft
add freeOnce()
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 04 Aug 2010 17:42:36 +0900 |
parents | 197b7e19a345 |
children | 8cf62aea798f |
line wrap: on
line source
#ifndef INCLUDED_TASKLIST #define INCLUDED_TASKLIST #include "base.h" #include "Task.h" #define TASK_MAX_SIZE 31 class TaskList { // 1024 byte public: BASE_NEW_DELETE(TaskList); int length; // 4 byte TaskList *next; // 4 byte TaskList *prev; // 4 byte TaskList *waiter; // 4 byte int dummy[4]; // 16 byte SimpleTask tasks[TASK_MAX_SIZE]; // 32*TASK_MAX_SIZE void init() { length = 0; waiter=this; } void initOnce() { } void freeOnce() {} } ; typedef TaskList* TaskListPtr; #endif