Mercurial > hg > Game > Cerium
view include/TaskManager/TaskManager.h @ 80:1c648675c2bd
*** empty log message ***
author | gongo |
---|---|
date | Wed, 20 Feb 2008 10:56:37 +0900 |
parents | 83b57e03d3ef |
children | 504899860e66 |
line wrap: on
line source
#ifndef INCLUDED_TASK_MANAGER #define INCLUDED_TASK_MANAGER #ifndef INCLUDED_TASK_MANAGER_IMPL # include "TaskManagerImpl.h" #endif #ifndef INCLUDED_SYMTABLE # include "SymTable.h" #endif class TaskManager { public: /* constructor */ TaskManager(int num = 1); // The number of threads /* variables */ TaskManagerImpl *m_impl; static SymTable *symtb; /* functions */ void init(void); void finish(void); HTaskPtr create_task(int cmd, int siz, DmaBuffer *in_addr, DmaBuffer *out_addr, void (*func)(void)); //HTaskPtr create_task(int cmd, int siz, unsigned int in_addr, //unsigned int out_addr, void (*func)(void)); //void set_task_depend(HTaskPtr master, HTaskPtr slave); //void spawn_task(HTaskPtr); void run(void); void set_init_task(const char *sym); void set_symbol(const char *sym, void *addr); int open(const char *sym); static void* get_address(int fd); DmaBuffer* allocate(int size); private: int machineNum; }; #endif