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
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"
1185
26dea600d4cd fix CellTaskManagerImpl
Daichi TOMA <amothic@cr.ie.u-ryukyu.ac.jp>
parents: 1147
diff changeset
7 #include "CpuThreads.h"
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
8
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
9 class FifoTaskManagerImpl : public TaskManagerImpl {
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
10 public:
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
11 /* constructor */
1147
279b41354753 add check code.
Yutaka_Kinjyo
parents: 1082
diff changeset
12 FifoTaskManagerImpl(int num) : TaskManagerImpl(num) {}
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
13 ~FifoTaskManagerImpl(void);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
14
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
15 /* variables */
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
16 int machineNum;
955
6ffeb543e8d4 unify all QueueInfo
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 833
diff changeset
17 QueueInfo<TaskList> *taskListInfo;
6ffeb543e8d4 unify all QueueInfo
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 833
diff changeset
18 QueueInfo<TaskList> *ppeTaskList; // running task
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
19
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
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
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
22
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
23 /* functions */
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
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
3c404a32719c TaskListInfo version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 806
diff changeset
27 void poll(); // called from CellTaskManagerImpl
1082
cfabe454e7cc cpu 0 never terminates
tkaito@henri
parents: 1079
diff changeset
28 void poll1(); // single CPU run called from CellTaskManagerImpl
808
3c404a32719c TaskListInfo version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 806
diff changeset
29 void run();
1310
26c155523861 add start_profile
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1229
diff changeset
30 void show_profile();
26c155523861 add start_profile
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1229
diff changeset
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
325b6c6d7d65 use one activeTaskQueue
yutaka@localhost.localdomain
parents: 1067
diff changeset
38 void set_runTaskList(QueueInfo<HTask>* activeTaskQueue);
325b6c6d7d65 use one activeTaskQueue
yutaka@localhost.localdomain
parents: 1067
diff changeset
39 //void set_runTaskList();
808
3c404a32719c TaskListInfo version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 806
diff changeset
40 void sendTaskList();
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
41
1067
5ad8fb1dc70f print_arch add.
tkaito
parents: 1057
diff changeset
42 void print_arch();
5ad8fb1dc70f print_arch add.
tkaito
parents: 1057
diff changeset
43
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
44 // call by user
1079
7823233584da single cpu run on Mac OS X
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 1077
diff changeset
45 private:
7823233584da single cpu run on Mac OS X
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 1077
diff changeset
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
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
48 };
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
49
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
50
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
51 #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */