Mercurial > hg > Game > CbCTaskManager
view src/Fifo/TaskManager.h @ 15:2e764a0ae8ff
bit modify.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 09 Jan 2010 18:48:57 +0900 |
parents | f06fb0370caf |
children |
line wrap: on
line source
#ifndef _TASKMANAGER_H #define _TASKMANAGER_H #include <stdlib.h> #include "List.h" #include "Task.h" typedef struct _SchedTask { Task *task; Taskrun nextcode; void *rbuff; void *wbuff; } SchedTask; typedef struct _TaskManager { List *waitingList; // list of tasks waiting for others. List *activeList; List *schedTasks; // list of schedtasks executing now. List *exitTasks; // list of schedtasks which finished. SchedTask *running; struct _UserManager *user; } TaskManager; #endif /* !_TASKMANAGER_H */