view TaskManager/kernel/ppe/TaskQueueInfo.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 bf2d2625485e
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