Mercurial > hg > Game > Cerium
diff TaskManager/kernel/schedule/SchedTaskArrayLoad.cc @ 697:4b6242d03512 draft
TaskArray on going...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 13 Dec 2009 18:45:09 +0900 |
parents | 29bd0882272a |
children | 8ece2ac85149 |
line wrap: on
line diff
--- a/TaskManager/kernel/schedule/SchedTaskArrayLoad.cc Sun Dec 13 10:49:07 2009 +0900 +++ b/TaskManager/kernel/schedule/SchedTaskArrayLoad.cc Sun Dec 13 18:45:09 2009 +0900 @@ -4,15 +4,15 @@ SchedTaskArrayLoad::SchedTaskArrayLoad(SchedTaskBase *savedTask_) { - savedTask = saveTask_; + savedTask = savedTask_; } -~SchedTaskArrayLoad::SchedTaskArrayLoad() {} +SchedTaskArrayLoad::~SchedTaskArrayLoad() {} void SchedTaskArrayLoad::read() { - if (task->r_size == 0) return; + // if (task->r_size == 0) return; cannot happen... // load Task Array Data readbuf = scheduler->allocate(task->r_size); scheduler->dma_load(readbuf, task->rbuf,task->r_size, DMA_READ); @@ -25,7 +25,7 @@ SchedTaskArrayLoad::write() {} // to empty the pipeline SchedTaskBase* -SchedNop::next(Scheduler *scheduler, SchedTaskBase *p) +SchedTaskArrayLoad::next(Scheduler *scheduler, SchedTaskBase *p) { Task *nextTask = (Task *)readbuf; return new SchedTaskArray(savedTask, nextTask, nextTask);