comparison TaskManager/Cell/spe/SpeTaskManagerImpl.h @ 621:5b178db5988a

Cell fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 15 Nov 2009 03:34:18 +0900
parents 0decff4e867b
children d433fc37587d
comparison
equal deleted inserted replaced
620:55ed910d13c2 621:5b178db5988a
1 #ifndef INCLUDED_FIFO_TASK_MANAGER_IMPL 1 #ifndef INCLUDED_TASK_MANAGER_IMPL
2 #define INCLUDED_FIFO_TASK_MANAGER_IMPL 2 #define INCLUDED_TASK_MANAGER_IMPL
3 3
4 #include "TaskManagerImpl.h" 4 #include "MailManager.h"
5 #include "MainScheduler.h" 5 #include "ListData.h"
6 #include "Scheduler.h" 6 #include "TaskListInfo.h"
7 #include "TaskQueueInfo.h"
8 #include "HTaskInfo.h"
9 class Scheduler;
10 class MemList;
7 11
8 class SpeTaskManagerImpl : public TaskManagerImpl { 12
13 class TaskManagerImpl {
9 public: 14 public:
10 /* constructor */ 15
11 SpeTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {} 16 BASE_NEW_DELETE(TaskManagerImpl);
12 ~SpeTaskManagerImpl(void);
13 17
14 /* variables */ 18 /* variables */
15 CellScheduler *scheduler; 19 SchedTask *schedTaskManager;
20 Scheduler *scheduler;
16 21
17 /* functions */ 22 /* constructor */
18 // call by system 23 TaskManagerImpl(Scheduler *s) { scheduler = s; }
19 void init(void);
20 void run(void);
21 24
22 // call by user 25 ~TaskManagerImpl() { }
23 int add_data(ListDataPtr, uint32, int); 26
27 // user
28 HTaskPtr create_task(int cmd);
29 void set_task_depend(HTaskPtr master, HTaskPtr slave);
30 void spawn_task(HTaskPtr);
31 void set_task_cpu(HTaskPtr, CPU_TYPE);
32
33 void* allocate(int size);
24 void* allocate(int size,int align); 34 void* allocate(int size,int align);
25 void* allocate(int size); 35 Scheduler* get_scheduler() { return scheduler; };
26 Scheduler* get_scheduler();
27 }; 36 };
28 37
29 38
30 #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */ 39 #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */