comparison include/TaskManager/SchedTaskImpl.h @ 305:dc9d06c60899

private
author kono@localhost.localdomain
date Mon, 08 Jun 2009 18:36:06 +0900
parents a02e863dc69f
children
comparison
equal deleted inserted replaced
304:e679d401eab3 305:dc9d06c60899
13 SchedTaskImpl(); 13 SchedTaskImpl();
14 virtual ~SchedTaskImpl(); 14 virtual ~SchedTaskImpl();
15 15
16 BASE_NEW_DELETE(SchedTask); 16 BASE_NEW_DELETE(SchedTask);
17 17
18 private:
18 /* variables */ 19 /* variables */
19 20
20 // Task を実行するスケジューラ自身 21 // Task を実行するスケジューラ自身
21 Scheduler *__scheduler; 22 Scheduler *__scheduler;
22 23
56 void (SchedTaskImpl::*ex_init)(); 57 void (SchedTaskImpl::*ex_init)();
57 void (SchedTaskImpl::*ex_read)(); 58 void (SchedTaskImpl::*ex_read)();
58 void (SchedTaskImpl::*ex_exec)(); 59 void (SchedTaskImpl::*ex_exec)();
59 void (SchedTaskImpl::*ex_write)(); 60 void (SchedTaskImpl::*ex_write)();
60 SchedTaskBase* (SchedTaskImpl::*ex_next)(); 61 SchedTaskBase* (SchedTaskImpl::*ex_next)();
61 62
62 /* functions */ 63 /* functions */
63 void __setRenew();
64 void __init__(TaskListPtr _list, TaskPtr _task, int index,
65 ListDataPtr rbuf, ListDataPtr wbuf, Scheduler* sc);
66 64
67 // override 65 // override
68 void read(); 66 void read();
69 void exec(); 67 void exec();
70 void write(); 68 void write();
97 void ex_read_renew(); 95 void ex_read_renew();
98 void ex_exec_renew(); 96 void ex_exec_renew();
99 void ex_write_renew(); 97 void ex_write_renew();
100 SchedTaskBase* ex_next_renew(); 98 SchedTaskBase* ex_next_renew();
101 99
100 public:
101 /* functions */
102
103 void __setRenew();
104 void __init__(TaskListPtr _list, TaskPtr _task, int index,
105 ListDataPtr rbuf, ListDataPtr wbuf, Scheduler* sc);
102 106
103 //--- User API --- 107 //--- User API ---
104 int get_cpuid(); 108 int get_cpuid();
105 109
106 void* get_input(void *buff, int index); 110 void* get_input(void *buff, int index);
126 130
127 void dma_load(void *buf, uint32 addr, uint32 size, uint32 mask); 131 void dma_load(void *buf, uint32 addr, uint32 size, uint32 mask);
128 void dma_store(void *buf,uint32 addr, uint32 size, uint32 mask); 132 void dma_store(void *buf,uint32 addr, uint32 size, uint32 mask);
129 void dma_wait(uint32 mask); 133 void dma_wait(uint32 mask);
130 134
135 private:
131 class STaskManager { 136 class STaskManager {
132 public: 137 public:
133 STaskManager(SchedTaskImpl *_t) { 138 STaskManager(SchedTaskImpl *_t) {
134 outer = _t; 139 outer = _t;
135 } 140 }