view TaskManager/kernel/ppe/TaskQueue.h @ 1531:4443d59a8210 draft

SDL.h in main.cc
author yuhi@cr.ie.u-ryukyu.ac.jp
date Fri, 07 Dec 2012 15:46:27 +0900
parents 338523ff6986
children
line wrap: on
line source

#ifndef INCLUDED_TASK_QUEUE
#define INCLUDED_TASK_QUEUE

#include "base.h"
#include "types.h"

class HTask;

class TaskQueue {

  /**
     HTask 間の dependency を表すリスト。HTask の wait_me と wait_i がこれ。
   */
public:
    TaskQueue(HTask *q = NULL);

    BASE_NEW_DELETE(TaskQueue);

    HTask *task;
    TaskQueue *waiter;

    TaskQueue *next;
    TaskQueue *prev;

    void init() { }
    void initOnce() { }
    void freeOnce() {}

    TaskQueue *init(HTask *task) {
	this->task = task;
	return this;
    }

}  ;

typedef TaskQueue* TaskQueuePtr;

#endif