Mercurial > hg > Members > kono > Cerium
diff include/TaskManager/BufferManager.h @ 109:5c194c71eca8
Cerium cvs version
author | gongo@gendarme.local |
---|---|
date | Wed, 12 Nov 2008 17:39:33 +0900 |
parents | dd33ec2e51b9 |
children | 3569d31705b6 81b25e5d5379 |
line wrap: on
line diff
--- a/include/TaskManager/BufferManager.h Wed Nov 12 17:29:35 2008 +0900 +++ b/include/TaskManager/BufferManager.h Wed Nov 12 17:39:33 2008 +0900 @@ -1,10 +1,6 @@ #ifndef INCLUDED_BUFFER_MANAGER #define INCLUDED_BUFFER_MANAGER -#ifndef INCLUDED_TASK -# include "task.h" -#endif - #ifndef INCLUDED_TYPES # include "types.h" #endif @@ -21,10 +17,6 @@ # include "HTaskInfo.h" #endif -#ifndef INCLUDED_DMA_BUFFER -# include "DmaBuffer.h" -#endif - class BufferManager { public: /* constructor */ @@ -37,35 +29,25 @@ HTaskInfo *htaskImpl; int machineNum; - TaskQueuePtr activeTaskQueue; - TaskQueuePtr waitTaskQueue; - TaskListPtr mainTaskList; /* function */ virtual void init(void); + // TaskList + TaskListPtr create_taskList(void); + void free_taskList(TaskListPtr); + TaskListPtr clear_taskList(TaskListPtr); + + // TaskQueue TaskQueuePtr create_taskQueue(HTaskPtr); - //HTaskPtr create_task(int cmd, int siz, DmaBuffer *in, DmaBuffer *out); - HTaskPtr create_task(int cmd, int siz, unsigned int in, unsigned int out); void free_taskQueue(TaskQueuePtr); + + // HTask + HTaskPtr create_task(int cmd); void free_task(HTaskPtr); - // task list - virtual TaskListPtr get_available_taskList(void); void finish(void); - - virtual void clear_taskList(void); - - virtual void append_activeTask(HTaskPtr); - virtual void append_waitTask(HTaskPtr); - - void check_task_finish(HTaskPtr task); - void notify_wait_taskQueue(HTaskPtr depend, TaskQueuePtr list); - TaskQueuePtr remove_taskQueue(TaskQueuePtr list, TaskQueuePtr task); - TaskQueuePtr remove_taskQueue_eq_task(TaskQueuePtr list, HTaskPtr task); - void remove_taskQueue_all(TaskQueuePtr list); - private: };