Mercurial > hg > Members > kono > Cerium
view TaskManager/kernel/ppe/TaskList.h @ 830:c7905ead974f
return TaskList->self
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 25 May 2010 17:28:05 +0900 |
parents | 76a39ad68846 |
children | bed529c55eda |
line wrap: on
line source
#ifndef INCLUDED_TASKLIST #define INCLUDED_TASKLIST #include "base.h" #include "Task.h" #define TASK_MAX_SIZE 32 class TaskList { // 784 byte public: BASE_NEW_DELETE(TaskList); long length; // 4 byte TaskList *next; // 4 byte TaskList *prev; // 4 byte TaskList *waiter; // 4 byte SimpleTask tasks[TASK_MAX_SIZE]; // 24*TASK_MAX_SIZE void init() { length = 0; waiter=this; } }; typedef TaskList* TaskListPtr; #endif