Mercurial > hg > Members > kono > Cerium
view include/TaskManager/TaskManager.h @ 217:897aeb144569
fix
author | gongo@localhost.localdomain |
---|---|
date | Wed, 04 Feb 2009 22:50:42 +0900 |
parents | 894675539cbf |
children | 29e338dbc280 |
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)); /* functions */ void init(void); void finish(void); private: int machineNum; }; #endif extern TaskManager *manager;