Mercurial > hg > Game > Cerium
view TaskManager/kernel/schedule/SchedTaskArrayLoad.cc @ 699:8ece2ac85149 draft
....
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 13 Dec 2009 22:46:15 +0900 |
parents | 4b6242d03512 |
children | b2b4a1243961 |
line wrap: on
line source
#include "SchedTaskArrayLoad.h" #include "SchedTaskArray.h" #include "Task.h" SchedTaskArrayLoad::SchedTaskArrayLoad(Scheduler *s, SchedTaskBase *savedTask_) { SchedTask *sv = (SchedTask*)savedTask_; scheduler = s; savedTask = savedTask_; task = sv->task; } SchedTaskArrayLoad::~SchedTaskArrayLoad() {} void SchedTaskArrayLoad::read() { // 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); } void SchedTaskArrayLoad::exec() {} // to empty the pipeline void SchedTaskArrayLoad::write() {} // to empty the pipeline SchedTaskBase* SchedTaskArrayLoad::next(Scheduler *scheduler, SchedTaskBase *p) { Task *nextTask = (Task *)readbuf; return new SchedTaskArray(scheduler, savedTask, nextTask, nextTask); } /* end */