view 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 source

#include "SchedTaskArrayLoad.h"
#include "SchedTaskArray.h"
#include "Task.h"

SchedTaskArrayLoad::SchedTaskArrayLoad(SchedTaskBase *savedTask_)
{
    savedTask = savedTask_;
}

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(savedTask, nextTask, nextTask);
}

/* end */