Mercurial > hg > Game > Cerium
view include/TaskManager/TaskQueueInfo.h @ 46:f154d9d07a42
*** empty log message ***
author | gongo |
---|---|
date | Fri, 15 Feb 2008 13:09:43 +0900 |
parents | |
children | 90523ccc4dff |
line wrap: on
line source
#ifndef INCLUDED_TASK_QUEUE_INFO #define INCLUDED_TASK_QUEUE_INFO #ifndef INCLUDED_TASK # include "task.h" #endif #ifndef INCLUDED_HTASK_INFO # include "HTaskInfo.h" #endif class TaskQueueInfo { public: /* constructor */ TaskQueueInfo(void); ~TaskQueueInfo(void); /* functions */ int init(int num); TaskQueuePtr create(HTaskPtr task); void free(TaskQueuePtr queue); static TaskQueuePtr append(TaskQueuePtr list, TaskQueuePtr q); private: /* variables */ TaskQueuePtr taskQueuePool; TaskQueuePtr freeTaskQueue; /* functions */ int extend_pool(int num); void destroy(void); }; #endif