Mercurial > hg > Game > Cerium
view include/TaskManager/TaskQueueInfo.h @ 132:9550e4ce2868 draft
add XML
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 25 Nov 2008 18:19:53 +0900 |
parents | 028ffc9c0375 |
children | 3fc86ddf5d1c |
line wrap: on
line source
#ifndef INCLUDED_TASK_QUEUE_INFO #define INCLUDED_TASK_QUEUE_INFO #ifndef INCLUDED_TASK_QUEUE # include "TaskQueue.h" #endif class TaskQueueInfo { public: /* constructor */ TaskQueueInfo(void); ~TaskQueueInfo(void); /* functions */ int init(int num); TaskQueuePtr create(TaskPtr task); void free(TaskQueuePtr queue); private: /* variables */ TaskQueuePtr taskQueuePool; TaskQueuePtr freeTaskQueue; /* functions */ int extend_pool(int num); void destroy(void); }; #endif