view TaskManager/kernel/ppe/TaskQueue.h @ 498:bce667ff20b9 draft

double linked HTaskInfo/HTask
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 11 Oct 2009 11:46:41 +0900
parents 5f4ffff2c2aa
children 981aa2f89a80
line wrap: on
line source

#ifndef INCLUDED_TASK_QUEUE
#define INCLUDED_TASK_QUEUE

#include "base.h"

class Task;

class TaskQueue {
public:
    TaskQueue(Task *q = NULL);

    BASE_NEW_DELETE(TaskQueue);

    Task *task;
    TaskQueue *waiter;

    static TaskQueue* append(TaskQueue* list, TaskQueue* q);

    TaskQueue *next;
    TaskQueue *prev;

};

typedef TaskQueue* TaskQueuePtr;

#endif