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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
1 #ifndef INCLUDED_FIFO_TASK_MANAGER_IMPL
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_FIFO_TASK_MANAGER_IMPL
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
3
307
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
4 #include "TaskManagerImpl.h"
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
5 #include "MainScheduler.h"
373
205e4a4af635 MemList not working
kazz@kazzone.cr.ie.u-ryukyu.ac.jp
parents: 366
diff changeset
6 #include "Scheduler.h"
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
7
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
8 class FifoTaskManagerImpl : public TaskManagerImpl {
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
9 public:
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
10 /* constructor */
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
11 FifoTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {}
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
12 ~FifoTaskManagerImpl(void);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
13
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
14 /* variables */
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
15 int machineNum;
955
6ffeb543e8d4 unify all QueueInfo
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 833
diff changeset
16 QueueInfo<TaskList> *taskListInfo;
6ffeb543e8d4 unify all QueueInfo
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 833
diff changeset
17 QueueInfo<TaskList> *ppeTaskList; // running task
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
18
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
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
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
21
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
22 /* functions */
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
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
3c404a32719c TaskListInfo version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 806
diff changeset
26 void poll(); // called from CellTaskManagerImpl
3c404a32719c TaskListInfo version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 806
diff changeset
27 void run();
721
a0cfe7b28882 cleanups..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 720
diff changeset
28 void show_profile() {};
a0cfe7b28882 cleanups..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 720
diff changeset
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
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 647
diff changeset
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
3c404a32719c TaskListInfo version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 806
diff changeset
35 void set_runTaskList();
3c404a32719c TaskListInfo version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 806
diff changeset
36 void sendTaskList();
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
37
1067
5ad8fb1dc70f print_arch add.
tkaito
parents: 1057
diff changeset
38 void print_arch();
5ad8fb1dc70f print_arch add.
tkaito
parents: 1057
diff changeset
39
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
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
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
42 };
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
43
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
44
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
45 #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */