view include/TaskManager/TaskListInfo.h @ 195:4e66b3327c50 draft

fix
author gongo@gendarme.cr.ie.u-ryukyu.ac.jp
date Sun, 25 Jan 2009 17:44:17 +0900
parents 028ffc9c0375
children 3fc86ddf5d1c
line wrap: on
line source

#ifndef INCLUDED_TASK_LIST_INFO
#define INCLUDED_TASK_LIST_INFO

#ifndef INCLUDED_TYPES
#  include "types.h"
#endif

#ifndef INCLUDED_TASKLIST
#  include "TaskList.h"
#endif

class TaskListInfo {
public:
    /* constructor */
    TaskListInfo(void);
    virtual ~TaskListInfo(void);

    /* functions */
    int init(int num);
    TaskListPtr create(void);
    void free(TaskListPtr list);
    static TaskListPtr append(TaskListPtr list, TaskListPtr q);
    virtual int extend_pool(int num);

protected:
    /* variables */
    TaskListPtr taskListPool;
    TaskListPtr freeTaskList;

    /* functions */
    void destroy(void);

private:
};

#endif