Mercurial > hg > Game > Cerium
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 |
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; | |
479
bf2d2625485e
Double Linked List base TaskQueue
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
475
diff
changeset
|
16 TaskListPtr mainTaskList; // activeTask であるべきなんじゃないの? |
109 | 17 |
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 | 20 |
3 | 21 /* functions */ |
109 | 22 // call by system |
3 | 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 | 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 | 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 | 32 |
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 | 35 }; |
36 | |
109 | 37 |
38 #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */ |