Mercurial > hg > Game > Cerium
view include/TaskManager/HTask.h @ 135:ac436cebae2a draft
remove xml file
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 27 Nov 2008 16:19:50 +0900 |
parents | 028ffc9c0375 |
children | da8edd0735f2 cfd20d609ace |
line wrap: on
line source
#ifndef INCLUDED_HTASK #define INCLUDED_HTASK #ifndef INCLUDED_BASE_H_ # include "base.h" #endif #ifndef INCLUDED_TYPES # include "types.h" #endif #ifndef INCLUDED_TASK # include "Task.h" #endif #ifndef INCLUDED_TASK_QUEUE_INFO # include "TaskQueueInfo.h" #endif class TaskManagerImpl; class HTask : public Task { public: BASE_NEW_DELETE(HTask); TaskQueuePtr wait_me; // List of task waiting for me TaskQueuePtr wait_i; // List of task for which I am waiting void (*post_func)(void *); void *post_arg; CPU_TYPE cpu_type; HTask *next; TaskManagerImpl *mimpl; void spawn(void); void set_depend(HTask *); void set_cpu(CPU_TYPE type); void set_post(void (*func)(void *), void *arg); #define wait_for set_depend }; typedef HTask* HTaskPtr; #endif