view include/TaskManager/TaskListInfo.h @ 313:c9f8cfcdc5c2

fix ppu mail box waiting (mainMem allocate)
author kono@localhost.localdomain
date Tue, 09 Jun 2009 00:10:36 +0900
parents 7075842aa155
children
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);

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

    /* functions */
    void destroy(void);

private:
};

#endif