Mercurial > hg > Game > Cerium
view TaskManager/Cell/CellTaskManagerImpl.h @ 833:577bde5d0cec draft
poling (may recurse..)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 25 May 2010 18:22:59 +0900 |
parents | 3c404a32719c |
children | 178fbcc81fda |
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(); void set_runTaskList(); void sendTaskList(); void append_activeTask(HTaskPtr); void show_profile() ; void start_profile() ; void polling(); private: void send_taskList(int id); }; #endif