Mercurial > hg > Game > Cerium
view TaskManager/kernel/schedule/SchedTaskArrayNop.cc @ 1012:0e6c59377ef4 draft
fix HelloWorld
author | one@zeus.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 01 Nov 2010 18:27:19 +0900 |
parents | 16afbf03e5d2 |
children | 44d9b08519e0 |
line wrap: on
line source
#include "SchedTaskArrayNop.h" #include "Scheduler.h" SchedTaskArrayNop::SchedTaskArrayNop(Scheduler *s, SchedTaskBase *savedTask_, Task *curTask_, Task *_array) { savedTask = savedTask_; atask = _array; scheduler = s; inListData.bound = 0; inListData.size = 0; inListData.length = 0; inListData.element = 0; outListData.bound = 0; outListData.size = 0; outListData.length = 0; outListData.element = 0; cur_index = -3; } /** */ SchedTaskArrayNop::~SchedTaskArrayNop() { } /** * Task data / code read */ void SchedTaskArrayNop::read() { } /** * Wait read data and execute task * Start write DMA */ void SchedTaskArrayNop::exec() { } /** * Wait write DMA * send finish mail */ void SchedTaskArrayNop::write() { savedTask->write(); free(atask); delete savedTask; savedTask = 0; } SchedTaskBase* SchedTaskArrayNop::next(Scheduler *scheduler, SchedTaskBase *p) { // 最後のTask が exec されて、次の Task を実行してかまわない。 return savedTask->next(scheduler, savedTask); } /* end */