Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Cell/spe/SpeTaskManagerImpl.h @ 636:d433fc37587d
Cell Simple Task compiled. but not worked.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Nov 2009 19:09:40 +0900 |
parents | 5b178db5988a |
children | 5530fa36d42e |
rev | line source |
---|---|
621 | 1 #ifndef INCLUDED_TASK_MANAGER_IMPL |
2 #define INCLUDED_TASK_MANAGER_IMPL | |
619 | 3 |
621 | 4 #include "MailManager.h" |
5 #include "ListData.h" | |
6 #include "TaskListInfo.h" | |
7 #include "TaskQueueInfo.h" | |
8 #include "HTaskInfo.h" | |
9 class Scheduler; | |
10 class MemList; | |
619 | 11 |
621 | 12 |
13 class TaskManagerImpl { | |
619 | 14 public: |
621 | 15 |
16 BASE_NEW_DELETE(TaskManagerImpl); | |
619 | 17 |
18 /* variables */ | |
621 | 19 SchedTask *schedTaskManager; |
20 Scheduler *scheduler; | |
21 | |
22 /* constructor */ | |
636
d433fc37587d
Cell Simple Task compiled. but not worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
621
diff
changeset
|
23 TaskManagerImpl() { } |
621 | 24 |
25 ~TaskManagerImpl() { } | |
619 | 26 |
621 | 27 // user |
28 HTaskPtr create_task(int cmd); | |
636
d433fc37587d
Cell Simple Task compiled. but not worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
621
diff
changeset
|
29 HTaskPtr create_task(int cmd, memaddr rbuf, long rs, memaddr wbuf, long ws); |
621 | 30 void set_task_depend(HTaskPtr master, HTaskPtr slave); |
31 void spawn_task(HTaskPtr); | |
32 void set_task_cpu(HTaskPtr, CPU_TYPE); | |
619 | 33 |
621 | 34 void* allocate(int size); |
619 | 35 void* allocate(int size,int align); |
636
d433fc37587d
Cell Simple Task compiled. but not worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
621
diff
changeset
|
36 void set_scheduler(Scheduler *s) { scheduler = s; }; |
621 | 37 Scheduler* get_scheduler() { return scheduler; }; |
619 | 38 }; |
39 | |
40 | |
41 #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */ |