Mercurial > hg > Members > kono > Cerium
diff TaskManager/kernel/schedule/SchedTaskList.h @ 366:09f33c51a204
rename include/TaskManager/* and add memory
author | aaa |
---|---|
date | Mon, 27 Jul 2009 15:51:18 +0900 |
parents | include/TaskManager/SchedTaskList.h@b89ba1d96fff |
children | 1733f3cbfa28 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/kernel/schedule/SchedTaskList.h Mon Jul 27 15:51:18 2009 +0900 @@ -0,0 +1,43 @@ +#ifndef INCLUDED_SCHED_TASKLIST +#define INCLUDED_SCHED_TASKLIST + +#include "base.h" +#include "Scheduler.h" +#include "SchedTaskBase.h" + +#include "error.h" + +class SchedTaskList : public SchedTaskBase { +public: + /* constructor */ + SchedTaskList(unsigned int addr, Scheduler *sched); + + BASE_NEW_DELETE(SchedTaskList); + + /* variables */ + unsigned int params_addr; + TaskListPtr list; + Scheduler *scheduler; + + int flag_renewTaskList; + + /* functions */ + SchedTaskBase* next(Scheduler *, SchedTaskBase *); + + /* override functions */ + void read(void); + +#ifdef DEBUG + void exec(void) { __debug("[SchedTaskList:%s]\n", __FUNCTION__); } + void write(void) { __debug("[SchedTaskList:%s]\n", __FUNCTION__); } +#endif + +}; + +const int SCHED_TASKLIST_NORMAL = 0; +const int SCHED_TASKLIST_RENEW = 1; + +extern SchedTaskList* createSchedTaskList(uint32, Scheduler*, int); + +#endif +