Mercurial > hg > Game > Cerium
view TaskManager/kernel/ppe/TaskManager.h @ 373:205e4a4af635 draft
MemList not working
author | kazz@kazzone.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 31 Jul 2009 17:52:27 +0900 |
parents | 1a80a2aa696c |
children | ce86b0186a4a |
line wrap: on
line source
#ifndef INCLUDED_TASK_MANAGER #define INCLUDED_TASK_MANAGER #include "TaskManagerImpl.h" #include "Random.h" #include "MemList.h" #include "Scheduler.h" class TaskManager { public: /* constructor */ TaskManager(int num = 1); // The number of threads ~TaskManager(void); /* variables */ TaskManagerImpl *m_impl; void (*tm_end)(void); RandomPtr gen_random; /* user function */ HTaskPtr create_task(int cmd); void run(void); void *allocate(int size); void set_TMend(void (*endf)(void)); int get_cpuNum(void); int get_random(void); Scheduler *get_scheduler(); /* functions */ void init(void); void finish(void); private: int machineNum; }; #endif extern TaskManager *manager;