Mercurial > hg > Game > Cerium
view include/TaskManager/TaskManager.h @ 220:305ac1897c50 draft
fix
author | gongo@localhost.localdomain |
---|---|
date | Mon, 09 Feb 2009 21:58:45 +0900 |
parents | e9a52d68db42 |
children | e6eb4f8d6b0e |
line wrap: on
line source
#ifndef INCLUDED_TASK_MANAGER #define INCLUDED_TASK_MANAGER #ifndef INCLUDED_TASK_MANAGER_IMPL # include "TaskManagerImpl.h" #endif class TaskManager { public: /* constructor */ TaskManager(int num = 1); // The number of threads ~TaskManager(void); /* variables */ TaskManagerImpl *m_impl; void (*tm_end)(void); /* user function */ HTaskPtr create_task(int cmd); void run(void); void *allocate(int size); void set_TMend(void (*endf)(void)); int get_cpuNum(void); /* functions */ void init(void); void finish(void); private: int machineNum; }; #endif extern TaskManager *manager;