Mercurial > hg > Game > CbCTaskManager
view Fifo/TaskManager.h @ 7:299cc57f332b
prototype of fifo version.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 06 Jan 2010 11:28:15 +0900 |
parents | 91a07e20e06d |
children |
line wrap: on
line source
#ifndef _TASKMANAGER_H #define _TASKMANAGER_H #include <stdlib.h> #include "List.h" #include "Task.h" #include "interface.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; } TaskManager; #endif /* !_TASKMANAGER_H */