Mercurial > hg > Members > e085722 > Cerium
comparison include/TaskManager/TaskQueue.h @ 0:04e28d8d3c6f
first commit
author | Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Nov 2010 01:23:25 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:04e28d8d3c6f |
---|---|
1 #ifndef INCLUDED_TASK_QUEUE | |
2 #define INCLUDED_TASK_QUEUE | |
3 | |
4 #include "base.h" | |
5 #include "types.h" | |
6 | |
7 class HTask; | |
8 | |
9 class TaskQueue { | |
10 | |
11 /** | |
12 HTask 間の dependency を表すリスト。HTask の wait_me と wait_i がこれ。 | |
13 */ | |
14 public: | |
15 TaskQueue(HTask *q = NULL); | |
16 | |
17 BASE_NEW_DELETE(TaskQueue); | |
18 | |
19 HTask *task; | |
20 TaskQueue *waiter; | |
21 | |
22 TaskQueue *next; | |
23 TaskQueue *prev; | |
24 | |
25 void init() { } | |
26 void initOnce() { } | |
27 void freeOnce() {} | |
28 | |
29 TaskQueue *init(HTask *task) { | |
30 this->task = task; | |
31 return this; | |
32 } | |
33 | |
34 } ; | |
35 | |
36 typedef TaskQueue* TaskQueuePtr; | |
37 | |
38 #endif |