annotate TaskManager/kernel/schedule/SchedNop2Ready.cc @ 1009:16afbf03e5d2 draft

not yet....
author yutaka@localhost.localdomain
date Thu, 28 Oct 2010 13:00:51 +0900
parents 00c01f416e3a
children 29355ae40e6c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
1 #include <stdio.h>
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
2 #include "SchedNop2Ready.h"
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
3 #include "SchedTaskList.h"
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
4 #include "SchedMail.h"
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
5 #include "error.h"
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
6
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
7 SchedNop2Ready::SchedNop2Ready(Scheduler *cn)
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
8 {
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
9 scheduler = cn;
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
10 }
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
11
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
12 void
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
13 SchedNop2Ready::exec(void)
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
14 {
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
15 __debug("[SchedNop2Ready:%s]\n", __FUNCTION__);
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
16
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
17 }
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
18
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
19 SchedTaskBase*
403
e2f29e912d0b clean up and add more info on task_list
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 298
diff changeset
20 SchedNop2Ready::next(Scheduler *scheduler,SchedTaskBase *p)
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
21 {
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
22 __debug("[SchedNop2Ready:%s]\n", __FUNCTION__);
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 625
diff changeset
23
1009
16afbf03e5d2 not yet....
yutaka@localhost.localdomain
parents: 1007
diff changeset
24 #ifdef MAIL_QUEUE
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 625
diff changeset
25 scheduler->mail_write_finish_list((memaddr)MY_SPE_STATUS_READY);
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 625
diff changeset
26 #else
625
94d82f2c842f 64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 619
diff changeset
27 scheduler->mail_write((memaddr)MY_SPE_STATUS_READY);
1007
00c01f416e3a add mail_queue
yutaka@localhost.localdomain
parents: 625
diff changeset
28 #endif
619
278db3ca751d RenewTask removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
29 return new SchedMail();
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
30 }