Mercurial > hg > Game > Cerium
view TaskManager/Cell/CellTaskManagerImpl.h @ 720:fc380dcad630 draft
Cell fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 19 Dec 2009 10:43:19 +0900 |
parents | 27fec8c70c9c |
children | 55d70a61dedc |
line wrap: on
line source
#ifndef INCLUDED_CELL_TASK_MANAGER_IMPL #define INCLUDED_CELL_TASK_MANAGER_IMPL #include "TaskManagerImpl.h" #include "FifoTaskManagerImpl.h" #include "SpeThreads.h" class CellTaskManagerImpl : public TaskManagerImpl { public: /* constructor */ CellTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {} ~CellTaskManagerImpl(); /* variables */ TaskListPtr *speTaskList; TaskListPtr *speTaskList_bg; SpeThreads *speThreads; int *flag_sendTaskList; FifoTaskManagerImpl *ppeManager; int spe_running; /* functions */ // system void init(); void run(); void mail_check(); void set_runTaskList(); void append_activeTask(HTaskPtr); void show_profile() ; void start_profile() ; // user // int add_data(ListDataPtr, uint32, int); #if 0 void* allocate(int size); void* allocate(int size,int align); Scheduler* get_scheduler(); #endif private: void send_taskList(int id); }; #endif