Mercurial > hg > Game > Cerium
annotate TaskManager/Fifo/FifoTaskManagerImpl.h @ 1067:5ad8fb1dc70f draft
print_arch add.
author | tkaito |
---|---|
date | Fri, 17 Dec 2010 19:59:24 +0900 |
parents | 8cd123d2f3ca |
children | 325b6c6d7d65 |
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" |
109 | 7 |
3 | 8 class FifoTaskManagerImpl : public TaskManagerImpl { |
9 public: | |
109 | 10 /* constructor */ |
11 FifoTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {} | |
12 ~FifoTaskManagerImpl(void); | |
13 | |
14 /* variables */ | |
15 int machineNum; | |
955 | 16 QueueInfo<TaskList> *taskListInfo; |
17 QueueInfo<TaskList> *ppeTaskList; // running task | |
109 | 18 |
19 MailManager *mailManager; | |
640
ecf056ddd21a
SimpeTask on Cell worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
637
diff
changeset
|
20 MainScheduler *mainScheduler; |
109 | 21 |
3 | 22 /* functions */ |
109 | 23 // call by system |
1057
8cd123d2f3ca
debug_check_spu_idle add. commandline option [-spuidle].
tkaito@henri
parents:
955
diff
changeset
|
24 void init(int spuIdle); |
475
4e0308d2ba73
BufferManager removed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
373
diff
changeset
|
25 void init(MainScheduler*, TaskManagerImpl*); |
808 | 26 void poll(); // called from CellTaskManagerImpl |
27 void run(); | |
721 | 28 void show_profile() {}; |
29 void start_profile() {}; | |
833
577bde5d0cec
poling (may recurse..)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
808
diff
changeset
|
30 void polling(); |
672 | 31 |
647
7ba4ad4538b1
MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
640
diff
changeset
|
32 |
7ba4ad4538b1
MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
640
diff
changeset
|
33 void mail_check(); |
7ba4ad4538b1
MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
640
diff
changeset
|
34 |
808 | 35 void set_runTaskList(); |
36 void sendTaskList(); | |
109 | 37 |
1067 | 38 void print_arch(); |
39 | |
109 | 40 // call by user |
647
7ba4ad4538b1
MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
640
diff
changeset
|
41 |
3 | 42 }; |
43 | |
109 | 44 |
45 #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */ |