Mercurial > hg > Members > kono > Cerium
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/TaskManager/TaskQueueInfo.h Fri Feb 15 13:09:43 2008 +0900 @@ -0,0 +1,34 @@ +#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