Mercurial > hg > Members > kono > Cerium
annotate TaskManager/kernel/schedule/SchedNop2Ready.cc @ 518:125a72948e44
....
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Oct 2009 17:57:17 +0900 |
parents | 735f76483bb2 |
children | 0decff4e867b |
rev | line source |
---|---|
42 | 1 #include <stdio.h> |
2 #include "SchedNop2Ready.h" | |
109 | 3 #include "SchedTaskList.h" |
42 | 4 #include "SchedMail.h" |
5 #include "error.h" | |
6 | |
109 | 7 SchedNop2Ready::SchedNop2Ready(Scheduler *cn) |
42 | 8 { |
109 | 9 scheduler = cn; |
42 | 10 } |
11 | |
12 void | |
13 SchedNop2Ready::exec(void) | |
14 { | |
15 __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); | |
16 | |
109 | 17 //scheduler->mail_write(MY_SPE_STATUS_READY); |
42 | 18 } |
19 | |
20 SchedTaskBase* | |
403
8611780d479f
clean up and add more info on task_list
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
298
diff
changeset
|
21 SchedNop2Ready::next(Scheduler *scheduler,SchedTaskBase *p) |
42 | 22 { |
184 | 23 SchedTaskBase *nextSched; |
24 | |
42 | 25 __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); |
26 | |
507 | 27 // delete p; |
42 | 28 |
187 | 29 nextSched = scheduler->get_nextRenewTaskList(); |
184 | 30 |
298 | 31 // RenewTask がある |
184 | 32 if (nextSched) { |
33 return nextSched; | |
109 | 34 } else { |
35 scheduler->mail_write(MY_SPE_STATUS_READY); | |
403
8611780d479f
clean up and add more info on task_list
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
298
diff
changeset
|
36 return new SchedMail(); |
109 | 37 } |
42 | 38 } |