Mercurial > hg > Game > Cerium
annotate TaskManager/Cell/CellTaskManagerImpl.h @ 1133:bb17a03bab60 draft
fix.
author | kaito@dolphins |
---|---|
date | Wed, 16 Feb 2011 02:08:17 +0900 |
parents | 2a63ba2c9506 |
children | bccd192a43b2 |
rev | line source |
---|---|
58 | 1 #ifndef INCLUDED_CELL_TASK_MANAGER_IMPL |
2 #define INCLUDED_CELL_TASK_MANAGER_IMPL | |
3 | |
307 | 4 #include "TaskManagerImpl.h" |
5 #include "FifoTaskManagerImpl.h" | |
6 #include "SpeThreads.h" | |
65 | 7 |
58 | 8 class CellTaskManagerImpl : public TaskManagerImpl { |
9 public: | |
67 | 10 /* constructor */ |
109 | 11 CellTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {} |
501
7ddbe22d4cdb
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
12 ~CellTaskManagerImpl(); |
67 | 13 |
65 | 14 /* variables */ |
957
3b96a09faf8e
quue info working on Cell.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
955
diff
changeset
|
15 QueueInfo<TaskList> **taskListInfo; |
3b96a09faf8e
quue info working on Cell.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
955
diff
changeset
|
16 QueueInfo<TaskList> **speTaskList; // running task |
109 | 17 |
65 | 18 SpeThreads *speThreads; |
109 | 19 FifoTaskManagerImpl *ppeManager; |
637 | 20 int spe_running; |
1057
8cd123d2f3ca
debug_check_spu_idle add. commandline option [-spuidle].
tkaito@henri
parents:
957
diff
changeset
|
21 int spuIdle; |
65 | 22 |
58 | 23 /* functions */ |
109 | 24 // system |
1057
8cd123d2f3ca
debug_check_spu_idle add. commandline option [-spuidle].
tkaito@henri
parents:
957
diff
changeset
|
25 void init(int spuIdle); |
501
7ddbe22d4cdb
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
26 void run(); |
808 | 27 void poll(); |
1123 | 28 void poll1(int spu_limit); |
29 void poll2(int spu_limit); | |
936
178fbcc81fda
dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
833
diff
changeset
|
30 void mail_check(int id); |
1077 | 31 //void set_runTaskList(*QueueInfo<HTask>); |
32 void set_runTaskList(QueueInfo<HTask>* activeTaskQueue); | |
722 | 33 void sendTaskList(); |
501
7ddbe22d4cdb
Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
496
diff
changeset
|
34 void append_activeTask(HTaskPtr); |
672 | 35 void show_profile() ; |
36 void start_profile() ; | |
833
577bde5d0cec
poling (may recurse..)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
808
diff
changeset
|
37 void polling(); |
1066 | 38 void debug_check_spe_idle(QueueInfo<HTask> * activeTaskQueue, int spe_running_); |
1067 | 39 void print_arch(); |
109 | 40 private: |
41 void send_taskList(int id); | |
937
ecafd19a1d83
Sort working on spu cpu == 1 or -a case
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
936
diff
changeset
|
42 void show_dead_lock_info(); |
ecafd19a1d83
Sort working on spu cpu == 1 or -a case
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
936
diff
changeset
|
43 |
58 | 44 }; |
45 | |
46 #endif |