annotate TaskManager/kernel/ppe/TaskManagerImpl.h @ 475:e083c4ff91c1

BufferManager removed.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 04 Oct 2009 11:29:50 +0900
parents eab18aa0c7f6
children 5bda98b0b56d
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_TASK_MANAGER_IMPL
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_TASK_MANAGER_IMPL
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
3
307
7075842aa155 clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
4 #include "MailManager.h"
7075842aa155 clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
5 #include "ListData.h"
373
eab18aa0c7f6 MemList not working
kazz@kazzone.cr.ie.u-ryukyu.ac.jp
parents: 366
diff changeset
6 #include "Scheduler.h"
475
e083c4ff91c1 BufferManager removed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 373
diff changeset
7 #include "TaskListInfo.h"
e083c4ff91c1 BufferManager removed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 373
diff changeset
8 #include "TaskQueueInfo.h"
e083c4ff91c1 BufferManager removed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 373
diff changeset
9 #include "HTaskInfo.h"
e083c4ff91c1 BufferManager removed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 373
diff changeset
10
54
90523ccc4dff *** empty log message ***
gongo
parents: 50
diff changeset
11
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
12 class TaskManagerImpl {
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
13 public:
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
14 /* constructor */
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
15 TaskManagerImpl(int num = 1);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
16 virtual ~TaskManagerImpl(void) {}
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
17
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
18 /* variables */
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
19 int machineNum;
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
20 TaskQueuePtr activeTaskQueue;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
21 TaskQueuePtr waitTaskQueue;
475
e083c4ff91c1 BufferManager removed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 373
diff changeset
22
e083c4ff91c1 BufferManager removed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 373
diff changeset
23 /* variables */
e083c4ff91c1 BufferManager removed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 373
diff changeset
24 TaskListInfo *taskListImpl;
e083c4ff91c1 BufferManager removed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 373
diff changeset
25 TaskQueueInfo *taskQueueImpl;
e083c4ff91c1 BufferManager removed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 373
diff changeset
26 HTaskInfo *htaskImpl;
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
27
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
28 /* functions */
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
29 // system
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
30 virtual void init(void) = 0;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
31 virtual void run(void) = 0;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
32 virtual void append_activeTask(HTaskPtr);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
33 virtual void append_waitTask(HTaskPtr);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
34
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
35 void check_task_finish(HTaskPtr task);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
36 void notify_wait_taskQueue(HTaskPtr depend, TaskQueuePtr list);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
37 TaskQueuePtr remove_taskQueue(TaskQueuePtr list, TaskQueuePtr task);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
38 TaskQueuePtr remove_taskQueue_eq_task(TaskQueuePtr list, HTaskPtr task);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
39 void remove_taskQueue_all(TaskQueuePtr list);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
40 void wakeup_waitTask(void);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
41
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
42 void systask_init(void);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
43
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
44 // user
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
45 HTaskPtr create_task(int cmd);
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
46 void set_task_depend(HTaskPtr master, HTaskPtr slave);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
47 void spawn_task(HTaskPtr);
65
519d24aa7ac8 *** empty log message ***
gongo
parents: 58
diff changeset
48 void set_task_cpu(HTaskPtr, CPU_TYPE);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 88
diff changeset
49 virtual void* allocate(int size) = 0;
373
eab18aa0c7f6 MemList not working
kazz@kazzone.cr.ie.u-ryukyu.ac.jp
parents: 366
diff changeset
50 virtual Scheduler* get_scheduler() = 0;
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
51 };
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
52 #endif