comparison TaskManager/Cell/CellTaskManagerImpl.h @ 366:09f33c51a204

rename include/TaskManager/* and add memory
author aaa
date Mon, 27 Jul 2009 15:51:18 +0900
parents include/TaskManager/CellTaskManagerImpl.h@7075842aa155
children b4b8345b5366
comparison
equal deleted inserted replaced
365:f8769040a5df 366:09f33c51a204
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(void);
13
14 /* variables */
15 TaskListPtr *speTaskList;
16 TaskListPtr *speTaskList_bg;
17
18 SpeThreads *speThreads;
19 int *flag_sendTaskList;
20 FifoTaskManagerImpl *ppeManager;
21
22 /* functions */
23 // system
24 void init(void);
25 void run(void);
26 TaskListPtr mail_check(MailQueuePtr mail_list);
27 void set_runTaskList(void);
28 void append_activeTask(HTaskPtr);
29
30 // user
31 int add_data(ListDataPtr, uint32, int);
32 void* allocate(int size);
33
34 private:
35 void send_taskList(int id);
36 };
37
38 #ifdef Cerium_malloc
39 #undef Cerium_malloc
40 #endif
41
42 #define Cerium_malloc(dest, align, size) \
43 posix_memalign((void**)(dest), (align), (size))
44
45 #endif