Mercurial > hg > Game > Cerium
comparison TaskManager/Fifo/FifoTaskManagerImpl.h @ 479:bf2d2625485e draft
Double Linked List base TaskQueue
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 05 Oct 2009 10:36:37 +0900 |
parents | 4e0308d2ba73 |
children | f61da59ba4dc |
comparison
equal
deleted
inserted
replaced
478:b31019c79c34 | 479:bf2d2625485e |
---|---|
11 FifoTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {} | 11 FifoTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {} |
12 ~FifoTaskManagerImpl(void); | 12 ~FifoTaskManagerImpl(void); |
13 | 13 |
14 /* variables */ | 14 /* variables */ |
15 int machineNum; | 15 int machineNum; |
16 TaskListPtr mainTaskList; | 16 TaskListPtr mainTaskList; // activeTask であるべきなんじゃないの? |
17 | 17 |
18 MailManager *mailManager; | 18 MailManager *mailManager; |
19 MainScheduler *scheduler; | 19 MainScheduler *scheduler; |
20 | 20 |
21 /* functions */ | 21 /* functions */ |
22 // call by system | 22 // call by system |
23 void init(void); | 23 void init(void); |
24 void init(MainScheduler*, TaskManagerImpl*); | 24 void init(MainScheduler*, TaskManagerImpl*); |
25 void run(void); | 25 void run(void); |
26 void mail_check(MailQueuePtr mail_list); | 26 void mail_check(MailQueuePtr mail_list); |
27 void mail_check(MailQueuePtr mail_list, TaskQueuePtr *waitQueue); | |
28 TaskListPtr get_runTaskList(void); | 27 TaskListPtr get_runTaskList(void); |
29 MailQueuePtr schedule(TaskListPtr); | 28 MailQueuePtr schedule(TaskListPtr); |
30 | 29 |
31 // call by user | 30 // call by user |
32 int add_data(ListDataPtr, uint32, int); | 31 int add_data(ListDataPtr, uint32, int); |