annotate include/TaskManager/SchedTaskList.h @ 217:897aeb144569

fix
author gongo@localhost.localdomain
date Wed, 04 Feb 2009 22:50:42 +0900
parents 907bda4a1a14
children b0d37afab06a 81b25e5d5379
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
1 #ifndef INCLUDED_SCHED_TASKLIST
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_SCHED_TASKLIST
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
3
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
4 #ifndef INCLUDED_BASE_H_
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
5 # include "base.h"
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
6 #endif
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
7
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
8 #ifndef INCLUDED_SCHEDULER
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
9 # include "Scheduler.h"
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
10 #endif
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
11
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
12 #ifndef INCLUDED_SCHED_TASK_BASE
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
13 # include "SchedTaskBase.h"
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
14 #endif
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
15
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
16 #include "error.h"
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
17
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
18 class SchedTaskList : public SchedTaskBase {
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
19 public:
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
20 /* constructor */
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
21 SchedTaskList(unsigned int addr, Scheduler *sched);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
22
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
23 BASE_NEW_DELETE(SchedTaskList);
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
24
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
25 /* variables */
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
26 unsigned int params_addr;
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
27 TaskListPtr list;
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
28 Scheduler *scheduler;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
29
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 42
diff changeset
30 int flag_renewTaskList;
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
31
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
32 /* functions */
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
33 SchedTaskBase* next(Scheduler *, SchedTaskBase *);
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
34
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
35 /* override functions */
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
36 void read(void);
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
37
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
38 #ifdef DEBUG
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
39 void exec(void) { __debug("[SchedTaskList:%s]\n", __FUNCTION__); }
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
40 void write(void) { __debug("[SchedTaskList:%s]\n", __FUNCTION__); }
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
41 #endif
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
43 };
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
44
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
45 const int SCHED_TASKLIST_NORMAL = 0;
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
46 const int SCHED_TASKLIST_RENEW = 1;
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
47
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
48 #endif
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
49
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
50 extern SchedTaskList* createSchedTaskList(uint32, Scheduler*, int);