42
|
1 #ifndef INCLUDED_SCHED_NOP2READY
|
|
2 #define INCLUDED_SCHED_NOP2READY
|
|
3
|
109
|
4 #ifndef INCLUDED_BASE_H_
|
|
5 # include "base.h"
|
|
6 #endif
|
|
7
|
42
|
8 #ifndef INCLUDED_SCHEDULER
|
|
9 # include "Scheduler.h"
|
|
10 #endif
|
|
11
|
|
12 #ifndef INCLUDED_SCHED_TASK_BASE
|
|
13 # include "SchedTaskBase.h"
|
|
14 #endif
|
|
15
|
|
16 #ifndef INCLUDED_SCHED_NOP
|
|
17 # include "SchedNop.h"
|
|
18 #endif
|
|
19
|
|
20 #include "error.h"
|
|
21
|
|
22 class SchedNop2Ready : public SchedNop {
|
|
23 public:
|
|
24 /* constructor */
|
109
|
25 SchedNop2Ready(Scheduler*);
|
|
26
|
|
27 BASE_NEW_DELETE(SchedNop2Ready);
|
42
|
28
|
|
29 /* variables */
|
109
|
30 Scheduler* scheduler;
|
42
|
31
|
|
32 /* functions */
|
|
33 void exec(void);
|
|
34 SchedTaskBase* next(Scheduler *, SchedTaskBase *);
|
|
35
|
|
36 #if DEBUG
|
|
37 void read(void) { __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); }
|
|
38 void write(void) { __debug("[SchedNop2Ready:%s]\n", __FUNCTION__); }
|
|
39 #endif
|
|
40 };
|
|
41
|
|
42 #endif
|