Mercurial > hg > Game > CbCTaskManager
view Fifo/TaskManager.h @ 5:91a07e20e06d
commit.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 25 Dec 2009 17:53:11 +0900 |
parents | |
children | 299cc57f332b |
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 */