Mercurial > hg > Game > Cerium
view include/TaskManager/TaskManager.h @ 135:ac436cebae2a draft
remove xml file
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 27 Nov 2008 16:19:50 +0900 |
parents | 028ffc9c0375 |
children | b56fb6ac2fc4 |
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 /* variables */ TaskManagerImpl *m_impl; /* functions */ void init(void); void finish(void); HTaskPtr create_task(int cmd); void run(void); void* malloc(int size) { return m_impl->allocate(size); } private: int machineNum; }; #endif extern TaskManager *manager;