view TaskManager/kernel/ppe/TaskListInfo.h @ 475:4e0308d2ba73 draft

BufferManager removed.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 04 Oct 2009 11:29:50 +0900
parents 0251d06467de
children 981aa2f89a80
line wrap: on
line source

#ifndef INCLUDED_TASK_LIST_INFO
#define INCLUDED_TASK_LIST_INFO

#include "types.h"
#include "TaskList.h"

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);
    TaskListPtr clear_taskList(TaskListPtr list);

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

    /* functions */
    void destroy(void);

private:
};

#endif