Mercurial > hg > Game > Cerium
annotate TaskManager/Fifo/FifoTaskManagerImpl.h @ 1479:163220e54cc0 draft
remove hard code for TaskLog
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 24 Jul 2012 17:15:15 +0900 |
parents | ae5fb867cf84 |
children | e8c9a7099bcc |
rev | line source |
---|---|
3 | 1 #ifndef INCLUDED_FIFO_TASK_MANAGER_IMPL |
2 #define INCLUDED_FIFO_TASK_MANAGER_IMPL | |
3 | |
307 | 4 #include "TaskManagerImpl.h" |
5 #include "MainScheduler.h" | |
373 | 6 #include "Scheduler.h" |
1185
26dea600d4cd
fix CellTaskManagerImpl
Daichi TOMA <amothic@cr.ie.u-ryukyu.ac.jp>
parents:
1147
diff
changeset
|
7 #include "CpuThreads.h" |
109 | 8 |
3 | 9 class FifoTaskManagerImpl : public TaskManagerImpl { |
10 public: | |
109 | 11 /* constructor */ |
1147 | 12 FifoTaskManagerImpl(int num) : TaskManagerImpl(num) {} |
109 | 13 ~FifoTaskManagerImpl(void); |
14 | |
15 /* variables */ | |
16 int machineNum; | |
955 | 17 QueueInfo<TaskList> *taskListInfo; |
18 QueueInfo<TaskList> *ppeTaskList; // running task | |
109 | 19 |
20 MailManager *mailManager; | |
640
ecf056ddd21a
SimpeTask on Cell worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
637
diff
changeset
|
21 MainScheduler *mainScheduler; |
109 | 22 |
3 | 23 /* functions */ |
109 | 24 // call by system |
1479
163220e54cc0
remove hard code for TaskLog
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1429
diff
changeset
|
25 void init(int spuIdle, int useRefDma, int export_task_log); |
1229
424c1f16e704
add args useRefDma
Daichi TOMA <e085740@ie.u-ryukyu.ac.jp>
parents:
1185
diff
changeset
|
26 void init(MainScheduler*, TaskManagerImpl*, int); |
808 | 27 void poll(); // called from CellTaskManagerImpl |
1082 | 28 void poll1(); // single CPU run called from CellTaskManagerImpl |
808 | 29 void run(); |
1310 | 30 void show_profile(); |
31 void start_profile(); | |
1428
af2adce9752e
add to export TaskLog
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents:
1310
diff
changeset
|
32 void export_task_log(); |
833
577bde5d0cec
poling (may recurse..)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
808
diff
changeset
|
33 void polling(); |
1427
db5c022d871c
task array uses TaskList. (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
1310
diff
changeset
|
34 TaskListPtr createTaskList(); |
647
7ba4ad4538b1
MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
640
diff
changeset
|
35 |
7ba4ad4538b1
MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
640
diff
changeset
|
36 void mail_check(); |
7ba4ad4538b1
MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
640
diff
changeset
|
37 |
1077 | 38 void set_runTaskList(QueueInfo<HTask>* activeTaskQueue); |
39 //void set_runTaskList(); | |
808 | 40 void sendTaskList(); |
109 | 41 |
1067 | 42 void print_arch(); |
43 | |
109 | 44 // call by user |
1079 | 45 private: |
46 void set_runTaskList1(QueueInfo<HTask>* activeTaskQueue); | |
647
7ba4ad4538b1
MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
640
diff
changeset
|
47 |
3 | 48 }; |
49 | |
109 | 50 |
51 #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */ |