Mercurial > hg > Members > kono > Cerium
view include/TaskManager/TaskManager.h @ 128:776eca0daa02
texture load use hash table
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 25 Nov 2008 15:52:28 +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;