Mercurial > hg > Game > CbCTaskManager
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Fifo/TaskManager.h Fri Dec 25 17:53:11 2009 +0900 @@ -0,0 +1,23 @@ +#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 */