Mercurial > hg > Game > Cerium
view TaskManager/Cell/spe/SpeTaskManagerImpl.h @ 672:27fec8c70c9c draft
add profiling code
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 05 Dec 2009 20:20:08 +0900 |
parents | beb0f17c19f9 |
children | eb6add789a24 |
line wrap: on
line source
#ifndef INCLUDED_SPE_TASK_MANAGER_IMPL #define INCLUDED_SPE_TASK_MANAGER_IMPL #include "TaskManagerImpl.h" #include "MainScheduler.h" #include "Scheduler.h" class SpeTaskManagerImpl : public TaskManagerImpl { public: /* constructor */ BASE_NEW_DELETE(SpeTaskManagerImpl); SpeTaskManagerImpl() ; ~SpeTaskManagerImpl(); /* functions */ // call by system void init(); void run(); void start_profile(); void show_profile(); HTaskPtr create_task(int cmd); HTaskPtr create_task(int cmd, memaddr rbuf, long r_size, memaddr wbuf, long w_size); void set_task_depend(HTaskPtr master, HTaskPtr slave); void spawn_task(HTaskPtr); void set_task_cpu(HTaskPtr, CPU_TYPE); }; #endif /* INCLUDED_SPE_TASK_MANAGER_IMPL */