view TaskManager/kernel/ppe/TaskQueueInfo.h @ 475:e083c4ff91c1

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

#ifndef INCLUDED_TASK_QUEUE_INFO
#define INCLUDED_TASK_QUEUE_INFO

#include "TaskQueue.h"

class TaskQueueInfo {
public:
    /* constructor */
    TaskQueueInfo();
    ~TaskQueueInfo();

    /* functions */
    int init(int num);
    TaskQueuePtr create(TaskPtr task);
    void free(TaskQueuePtr queue);
    
private:
    /* variables */
    TaskQueuePtr taskQueuePool;
    TaskQueuePtr freeTaskQueue;

    /* functions */
    int extend_pool(int num);
    void destroy();  
};

#endif