Mercurial > hg > Game > Cerium
annotate TaskManager/Fifo/FifoTaskManagerImpl.h @ 915:aa9728394194 draft
create_polygon_task ..not worked yet.
author | yutaka@localhost.localdomain |
---|---|
date | Fri, 23 Jul 2010 18:05:40 +0900 |
parents | 577bde5d0cec |
children | 6ffeb543e8d4 |
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; | |
808 | 16 TaskListInfoPtr taskListInfo; |
17 TaskListInfoPtr 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 |
808 | 24 void init(); |
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 |
38 // call by user | |
647
7ba4ad4538b1
MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
640
diff
changeset
|
39 |
3 | 40 }; |
41 | |
109 | 42 |
43 #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */ |