Mercurial > hg > Game > Cerium
view include/TaskManager/TaskManagerImpl.h @ 58:7492eb28b577
*** empty log message ***
author | gongo |
---|---|
date | Sat, 16 Feb 2008 19:40:20 +0900 |
parents | 90523ccc4dff |
children | 519d24aa7ac8 |
line wrap: on
line source
#ifndef INCLUDED_TASK_MANAGER_IMPL #define INCLUDED_TASK_MANAGER_IMPL #ifndef INCLUDED_MAIL_MANAGER # include "MailManager.h" #endif #ifndef INCLUDED_MAIN_SCHEDULER # include "MainScheduler.h" #endif #ifndef INCLUDED_BUFFER_MANAGER # include "BufferManager.h" #endif class TaskManagerImpl { public: /* constructor */ TaskManagerImpl(int num = 1); virtual ~TaskManagerImpl(void); /* variables */ int machineNum; MailManager *mailManager; MainScheduler *scheduler; BufferManager *bufferManager; /* functions */ virtual void init(void); void run(void); MailQueuePtr mail_check(MailQueuePtr mail_list); HTaskPtr create_task(int cmd, int siz, DmaBuffer *in_addr, DmaBuffer *out_addr, void (*func)(void)); void set_task_depend(HTaskPtr master, HTaskPtr slave); TaskListPtr set_task(void); virtual void spawn_task(HTaskPtr); // Fixme // アライメントとか、インスタンス用の new 使える奴とか、etc... DmaBuffer* allocate(int size); }; #endif