view TaskManager/Cell/spe/TaskQueue.cc @ 109:5c194c71eca8

Cerium cvs version
author gongo@gendarme.local
date Wed, 12 Nov 2008 17:39:33 +0900
parents
children
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;
    }
}