Mercurial > hg > Game > Cerium
view TaskManager/Fifo/FifoTaskManagerImpl.h @ 1479:163220e54cc0 draft
remove hard code for TaskLog
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 24 Jul 2012 17:15:15 +0900 |
parents | ae5fb867cf84 |
children | e8c9a7099bcc |
line wrap: on
line source
#ifndef INCLUDED_FIFO_TASK_MANAGER_IMPL #define INCLUDED_FIFO_TASK_MANAGER_IMPL #include "TaskManagerImpl.h" #include "MainScheduler.h" #include "Scheduler.h" #include "CpuThreads.h" class FifoTaskManagerImpl : public TaskManagerImpl { public: /* constructor */ FifoTaskManagerImpl(int num) : TaskManagerImpl(num) {} ~FifoTaskManagerImpl(void); /* variables */ int machineNum; QueueInfo<TaskList> *taskListInfo; QueueInfo<TaskList> *ppeTaskList; // running task MailManager *mailManager; MainScheduler *mainScheduler; /* functions */ // call by system void init(int spuIdle, int useRefDma, int export_task_log); void init(MainScheduler*, TaskManagerImpl*, int); void poll(); // called from CellTaskManagerImpl void poll1(); // single CPU run called from CellTaskManagerImpl void run(); void show_profile(); void start_profile(); void export_task_log(); void polling(); TaskListPtr createTaskList(); void mail_check(); void set_runTaskList(QueueInfo<HTask>* activeTaskQueue); //void set_runTaskList(); void sendTaskList(); void print_arch(); // call by user private: void set_runTaskList1(QueueInfo<HTask>* activeTaskQueue); }; #endif /* INCLUDED_FIFO_TASK_MANAGER_IMPL */