annotate include/TaskManager/Scheduler.h @ 50:7927e00fb8e2

*** empty log message ***
author gongo
date Fri, 15 Feb 2008 19:36:08 +0900
parents aa11038dbdc1
children 178459e03f5c
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_SCHEDULER
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_SCHEDULER
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
3
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
4 #ifndef INCLUDED_TASK
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
5 # include "task.h"
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
6 #endif
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
7
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
8 #ifndef INCLUDED_DMA_MANAGER
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
9 # include "DmaManager.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 class SchedTaskBase;
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
17
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
18 class Scheduler {
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
19 public:
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
20 virtual ~Scheduler(void) {}
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
21
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
22 /* variables */
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
23 TaskListPtr listBuf[2];
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
24 void *readBuf[2];
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
25 void *writeBuf[2];
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
26 int listBufFlg;
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
27 int readBufFlg;
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
28 int writeBufFlg;
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
29
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
30 DmaManager* connector;
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
31
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
32 SchedTaskBase* task1;
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
33 SchedTaskBase* task2;
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
34 SchedTaskBase* task3;
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
35
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
36 /* functions */
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
37 void init(void);
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
38 void run(void);
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
39 virtual void init_impl(void) = 0;
50
7927e00fb8e2 *** empty log message ***
gongo
parents: 42
diff changeset
40 void finish(void);
42
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
41
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
42 TaskListPtr get_curListBuf(void);
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
43 void* get_curReadBuf(void);
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
44 void* get_curWriteBuf(void);
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
45 };
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
46
aa11038dbdc1 *** empty log message ***
gongo
parents:
diff changeset
47 #endif