comparison 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
comparison
equal deleted inserted replaced
108:6f3b3dd3c095 109:5c194c71eca8
1 #include "TaskQueue.h"
2
3 TaskQueue::TaskQueue(TaskPtr q)
4 {
5 task = q;
6 next = NULL;
7 }
8
9 TaskQueuePtr
10 TaskQueue::append(TaskQueuePtr list, TaskQueuePtr q)
11 {
12 TaskQueuePtr p = list;
13
14 if (!p) {
15 return q;
16 } else {
17 while(p->next) p = p->next;
18 p->next = q;
19 return list;
20 }
21 }