Mercurial > hg > Game > Cerium
view include/TaskManager/BufferManager.h @ 350:628cb162be88 draft
add tasts.xml renderer.xml
author | admin@mcbk.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 10 Jul 2009 16:41:20 +0900 |
parents | 3fc86ddf5d1c |
children | 5b995810b86a |
line wrap: on
line source
#ifndef INCLUDED_BUFFER_MANAGER #define INCLUDED_BUFFER_MANAGER #include "types.h" #include "TaskListInfo.h" #include "TaskQueueInfo.h" #include "HTaskInfo.h" /*! * Task Input/Output buffer manager * */ class BufferManager { public: /* constructor */ BufferManager(int num = 1); virtual ~BufferManager(void); /* variables */ TaskListInfo *taskListImpl; TaskQueueInfo *taskQueueImpl; HTaskInfo *htaskImpl; int machineNum; /* function */ virtual void init(void); // TaskList TaskListPtr create_taskList(void); void free_taskList(TaskListPtr); TaskListPtr clear_taskList(TaskListPtr); // TaskQueue TaskQueuePtr create_taskQueue(HTaskPtr); void free_taskQueue(TaskQueuePtr); // HTask HTaskPtr create_task(int cmd); void free_task(HTaskPtr); void finish(void); private: }; #endif