637
|
1 #ifndef INCLUDED_SPE_TASK_MANAGER_IMPL
|
|
2 #define INCLUDED_SPE_TASK_MANAGER_IMPL
|
619
|
3
|
637
|
4 #include "TaskManagerImpl.h"
|
|
5 #include "MainScheduler.h"
|
|
6 #include "Scheduler.h"
|
621
|
7
|
637
|
8 class SpeTaskManagerImpl : public TaskManagerImpl {
|
|
9 public:
|
621
|
10 /* constructor */
|
637
|
11 SpeTaskManagerImpl() ;
|
|
12 ~SpeTaskManagerImpl();
|
619
|
13
|
637
|
14 /* functions */
|
|
15 // call by system
|
|
16 void init();
|
|
17 void run();
|
621
|
18 HTaskPtr create_task(int cmd);
|
637
|
19 HTaskPtr create_task(int cmd, memaddr rbuf, long r_size, memaddr wbuf, long w_size);
|
621
|
20 void set_task_depend(HTaskPtr master, HTaskPtr slave);
|
|
21 void spawn_task(HTaskPtr);
|
|
22 void set_task_cpu(HTaskPtr, CPU_TYPE);
|
619
|
23
|
637
|
24
|
619
|
25 };
|
|
26
|
|
27
|
637
|
28 #endif /* INCLUDED_SPE_TASK_MANAGER_IMPL */
|