Mercurial > hg > Game > Cerium
annotate TaskManager/Fifo/FifoTaskManagerImpl.h @ 637:20665e4060ea draft
not yet worked...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 19 Nov 2009 11:13:42 +0900 |
parents | 5641d121818e |
children | ecf056ddd21a |
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; | |
19 MainScheduler *scheduler; | |
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); |
109 | 26 void mail_check(MailQueuePtr mail_list); |
498
bce667ff20b9
double linked HTaskInfo/HTask
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
485
diff
changeset
|
27 void mail_check(MailQueuePtr mail_list, HTaskInfo *waitQueue); |
109 | 28 TaskListPtr get_runTaskList(void); |
29 MailQueuePtr schedule(TaskListPtr); | |
30 | |
31 // call by user | |
32 int add_data(ListDataPtr, uint32, int); | |
637 | 33 #if 0 |
538 | 34 void* allocate(int size,int align); |
109 | 35 void* allocate(int size); |
373 | 36 Scheduler* get_scheduler(); |
637 | 37 #endif |
3 | 38 }; |
39 | |
109 | 40 |
41 #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */ |