Mercurial > hg > Game > Cerium
comparison TaskManager/kernel/ppe/HTask.h @ 498:bce667ff20b9 draft
double linked HTaskInfo/HTask
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 11 Oct 2009 11:46:41 +0900 |
parents | 75e4afa40da2 |
children | 981aa2f89a80 |
comparison
equal
deleted
inserted
replaced
497:3429986b8a28 | 498:bce667ff20b9 |
---|---|
4 #include "base.h" | 4 #include "base.h" |
5 #include "types.h" | 5 #include "types.h" |
6 #include "Task.h" | 6 #include "Task.h" |
7 #include "TaskQueueInfo.h" | 7 #include "TaskQueueInfo.h" |
8 | 8 |
9 class TaskQueueInfo; | |
10 class TaskManagerImpl; | 9 class TaskManagerImpl; |
11 | 10 |
12 /*! | 11 /*! |
13 @class | 12 @class |
14 | 13 |
27 TaskQueueInfo *wait_me; // List of task waiting for me | 26 TaskQueueInfo *wait_me; // List of task waiting for me |
28 TaskQueueInfo *wait_i; // List of task for which I am waiting | 27 TaskQueueInfo *wait_i; // List of task for which I am waiting |
29 void (*post_func)(void *arg); | 28 void (*post_func)(void *arg); |
30 void *post_arg; | 29 void *post_arg; |
31 CPU_TYPE cpu_type; | 30 CPU_TYPE cpu_type; |
32 HTask *next; // free list 用 | |
33 TaskManagerImpl *mimpl; | 31 TaskManagerImpl *mimpl; |
32 | |
33 Task *task; | |
34 HTask *waiter; | |
35 HTask *next; | |
36 HTask *prev; | |
34 | 37 |
35 void spawn(void); | 38 void spawn(void); |
36 void wait_for(HTask *); | 39 void wait_for(HTask *); |
37 void set_cpu(CPU_TYPE type); | 40 void set_cpu(CPU_TYPE type); |
38 void set_post(void (*func)(void *), void *arg); | 41 void set_post(void (*func)(void *), void *arg); |