Mercurial > hg > Game > Cerium
view TaskManager/kernel/ppe/TaskQueue.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 |
line wrap: on
line source
#ifndef INCLUDED_TASK_QUEUE #define INCLUDED_TASK_QUEUE #include "base.h" #include "types.h" class HTask; class TaskQueue { /** HTask 間の dependency を表すリスト。HTask の wait_me と wait_i がこれ。 */ public: TaskQueue(HTask *q = NULL); BASE_NEW_DELETE(TaskQueue); HTask *task; TaskQueue *waiter; TaskQueue *next; TaskQueue *prev; void init() { } void initOnce() { } void freeOnce() {} TaskQueue *init(HTask *task) { this->task = task; return this; } } ; typedef TaskQueue* TaskQueuePtr; #endif