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);
|
801
|
24 HTaskPtr create_task_array(int cmd, memaddr rbuf, long rs, memaddr wbuf, long ws);
|
621
|
25 void set_task_depend(HTaskPtr master, HTaskPtr slave);
|
|
26 void spawn_task(HTaskPtr);
|
|
27 void set_task_cpu(HTaskPtr, CPU_TYPE);
|
835
|
28 void polling() {}
|
637
|
29
|
619
|
30 };
|
|
31
|
|
32
|
637
|
33 #endif /* INCLUDED_SPE_TASK_MANAGER_IMPL */
|