Mercurial > hg > Game > CbCTaskManager
diff src/taskinit.cbc @ 13:f06fb0370caf
add pthread code that has not been debuged yet.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 08 Jan 2010 20:00:01 +0900 |
parents | 07fab8c367b2 |
children |
line wrap: on
line diff
--- a/src/taskinit.cbc Fri Jan 08 14:51:19 2010 +0900 +++ b/src/taskinit.cbc Fri Jan 08 20:00:01 2010 +0900 @@ -1,9 +1,20 @@ -#include "Task.h" +#include "CbCTaskManager.h" #include "taskinit.h" +#define F_NONE 0x000 +#define F_STARTER 0x001 +#define F_a 0x002 +#define F_b 0x004 + +typedef struct _TaskType { + Taskrun code; + char *name; + unsigned int flag; // F_STARTER .. +} TaskType; + const int max_tasktype = MAX_TASKCLASS; -extern __code nojob(void *, void *, void *); +extern __code nojob(UserManager *, void *, void *); #undef DEFINETASKTYPE #define DEFINETASKTYPE(_var, _code0, _name, _type) \