Mercurial > hg > Members > e085722 > Cerium
comparison TaskManager/Cell/CellTaskManagerImpl.h @ 0:04e28d8d3c6f
first commit
author | Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Nov 2010 01:23:25 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:04e28d8d3c6f |
---|---|
1 #ifndef INCLUDED_CELL_TASK_MANAGER_IMPL | |
2 #define INCLUDED_CELL_TASK_MANAGER_IMPL | |
3 | |
4 #include "TaskManagerImpl.h" | |
5 #include "FifoTaskManagerImpl.h" | |
6 #include "SpeThreads.h" | |
7 | |
8 class CellTaskManagerImpl : public TaskManagerImpl { | |
9 public: | |
10 /* constructor */ | |
11 CellTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {} | |
12 ~CellTaskManagerImpl(); | |
13 | |
14 /* variables */ | |
15 QueueInfo<TaskList> **taskListInfo; | |
16 QueueInfo<TaskList> **speTaskList; // running task | |
17 | |
18 SpeThreads *speThreads; | |
19 FifoTaskManagerImpl *ppeManager; | |
20 int spe_running; | |
21 | |
22 /* functions */ | |
23 // system | |
24 void init(); | |
25 void run(); | |
26 void poll(); | |
27 void mail_check(int id); | |
28 void set_runTaskList(); | |
29 void sendTaskList(); | |
30 void append_activeTask(HTaskPtr); | |
31 void show_profile() ; | |
32 void start_profile() ; | |
33 void polling(); | |
34 | |
35 private: | |
36 void send_taskList(int id); | |
37 void show_dead_lock_info(); | |
38 | |
39 }; | |
40 | |
41 #endif |