Mercurial > hg > Members > kono > Cerium
view include/TaskManager/TaskManager.h @ 184:907bda4a1a14
fix
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 06 Jan 2009 15:39:48 +0900 |
parents | 5c194c71eca8 |
children | 72dcf908ec52 |
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;