Mercurial > hg > Members > kono > Cerium
view TaskManager/Cell/CellTaskManagerImpl.h @ 936:14fb1c888931
dead lock on spu/ppu mail
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 31 Jul 2010 05:31:12 +0900 |
parents | 29094b48d966 |
children | 9689cba44964 |
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 */ TaskListInfoPtr *taskListInfo; TaskListInfoPtr *speTaskList; // running task SpeThreads *speThreads; FifoTaskManagerImpl *ppeManager; int spe_running; /* functions */ // system void init(); void run(); void poll(); void mail_check(int id); void set_runTaskList(); void sendTaskList(); void append_activeTask(HTaskPtr); void show_profile() ; void start_profile() ; void polling(); private: void send_taskList(int id); }; #endif