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 */
|
664
|
11 BASE_NEW_DELETE(SpeTaskManagerImpl);
|
|
12
|
637
|
13 SpeTaskManagerImpl() ;
|
|
14 ~SpeTaskManagerImpl();
|
619
|
15
|
637
|
16 /* functions */
|
|
17 // call by system
|
|
18 void init();
|
|
19 void run();
|
672
|
20 void start_profile();
|
|
21 void show_profile();
|
621
|
22 HTaskPtr create_task(int cmd);
|
637
|
23 HTaskPtr create_task(int cmd, memaddr rbuf, long r_size, memaddr wbuf, long w_size);
|
621
|
24 void set_task_depend(HTaskPtr master, HTaskPtr slave);
|
|
25 void spawn_task(HTaskPtr);
|
|
26 void set_task_cpu(HTaskPtr, CPU_TYPE);
|
619
|
27
|
637
|
28
|
619
|
29 };
|
|
30
|
|
31
|
637
|
32 #endif /* INCLUDED_SPE_TASK_MANAGER_IMPL */
|