annotate TaskManager/Fifo/FifoTaskManagerImpl.h @ 647:7ba4ad4538b1 draft

MailManager rewrite. not yet worked.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 21 Nov 2009 16:18:47 +0900
parents ecf056ddd21a
children 27fec8c70c9c
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;
479
bf2d2625485e Double Linked List base TaskQueue
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 475
diff changeset
16 TaskListPtr mainTaskList; // activeTask であるべきなんじゃないの?
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
17
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
18 MailManager *mailManager;
640
ecf056ddd21a SimpeTask on Cell worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 637
diff changeset
19 MainScheduler *mainScheduler;
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
20
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
21 /* functions */
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
22 // call by system
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
23 void init(void);
475
4e0308d2ba73 BufferManager removed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 373
diff changeset
24 void init(MainScheduler*, TaskManagerImpl*);
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
25 void run(void);
647
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 640
diff changeset
26
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 640
diff changeset
27 void mail_check();
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 640
diff changeset
28 void mail_check(HTaskInfo *waitQueue);
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 640
diff changeset
29
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
30 TaskListPtr get_runTaskList(void);
647
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 640
diff changeset
31 void schedule(TaskListPtr);
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
32
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
33 // call by user
647
7ba4ad4538b1 MailManager rewrite. not yet worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 640
diff changeset
34
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
35 };
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
36
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
37
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 58
diff changeset
38 #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */