Mercurial > hg > Game > Cerium
view TaskManager/Fifo/FifoTaskManagerImpl.h @ 1229:424c1f16e704 draft
add args useRefDma
author | Daichi TOMA <e085740@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 24 Aug 2011 07:45:27 +0900 |
parents | 26dea600d4cd |
children | 26c155523861 |
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); 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 polling(); 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 */