annotate include/TaskManager/CellTaskManagerImpl.h @ 311:b09784a9cb09

add smanager interface for test_nogl
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 08 Jun 2009 22:35:44 +0900
parents 7075842aa155
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
1 #ifndef INCLUDED_CELL_TASK_MANAGER_IMPL
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_CELL_TASK_MANAGER_IMPL
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
3
307
7075842aa155 clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
4 #include "TaskManagerImpl.h"
7075842aa155 clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
5 #include "FifoTaskManagerImpl.h"
7075842aa155 clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
6 #include "SpeThreads.h"
65
519d24aa7ac8 *** empty log message ***
gongo
parents: 61
diff changeset
7
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
8 class CellTaskManagerImpl : public TaskManagerImpl {
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
9 public:
67
7d2874fb0671 *** empty log message ***
gongo
parents: 65
diff changeset
10 /* constructor */
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
11 CellTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {}
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
12 ~CellTaskManagerImpl(void);
67
7d2874fb0671 *** empty log message ***
gongo
parents: 65
diff changeset
13
65
519d24aa7ac8 *** empty log message ***
gongo
parents: 61
diff changeset
14 /* variables */
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
15 TaskListPtr *speTaskList;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
16 TaskListPtr *speTaskList_bg;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
17
65
519d24aa7ac8 *** empty log message ***
gongo
parents: 61
diff changeset
18 SpeThreads *speThreads;
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
19 int *flag_sendTaskList;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
20 FifoTaskManagerImpl *ppeManager;
65
519d24aa7ac8 *** empty log message ***
gongo
parents: 61
diff changeset
21
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
22 /* functions */
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
23 // system
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
24 void init(void);
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
25 void run(void);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
26 TaskListPtr mail_check(MailQueuePtr mail_list);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
27 void set_runTaskList(void);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
28 void append_activeTask(HTaskPtr);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
29
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
30 // user
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
31 int add_data(ListDataPtr, uint32, int);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
32 void* allocate(int size);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
33
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
34 private:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
35 void send_taskList(int id);
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
36 };
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
37
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
38 #ifdef Cerium_malloc
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
39 #undef Cerium_malloc
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
40 #endif
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
41
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
42 #define Cerium_malloc(dest, align, size) \
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
43 posix_memalign((void**)(dest), (align), (size))
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
44
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
45 #endif