view TaskManager/kernel/ppe/TaskQueue.cc @ 109:028ffc9c0375 draft

Cerium cvs version
author gongo@gendarme.local
date Wed, 12 Nov 2008 17:39:33 +0900
parents
children bf2d2625485e
line wrap: on
line source

#include "TaskQueue.h"

TaskQueue::TaskQueue(TaskPtr q)
{
    task = q;
    next = NULL;
}

TaskQueuePtr
TaskQueue::append(TaskQueuePtr list, TaskQueuePtr q)
{
    TaskQueuePtr p = list;

    if (!p) {
	return q;
    } else {
	while(p->next) p = p->next;
	p->next = q;
	return list;
    }
}