view include/TaskManager/TaskListInfo.h @ 68:35a6cf176c38

*** empty log message ***
author chiaki
date Sun, 17 Feb 2008 21:45:07 +0900
parents 16f9f6251f49
children 5c194c71eca8
line wrap: on
line source

#ifndef INCLUDED_TASK_LIST_INFO
#define INCLUDED_TASK_LIST_INFO

#ifndef INCLUDED_TASK
#  include "task.h"
#endif

#ifndef INCLUDED_TYPES
#  include "types.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