Mercurial > hg > Game > Cerium
view TaskManager/kernel/schedule/SchedTaskArrayNop.cc @ 893:2faa1f62d925 draft
fix SimpleTask alignment
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Jul 2010 00:13:04 +0900 |
parents | a5ccf763fc3f |
children | 16afbf03e5d2 |
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 */