comparison 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
comparison
equal deleted inserted replaced
12:12ed3c43795a 13:f06fb0370caf
1 #include "Task.h" 1 #include "CbCTaskManager.h"
2 #include "taskinit.h" 2 #include "taskinit.h"
3
4 #define F_NONE 0x000
5 #define F_STARTER 0x001
6 #define F_a 0x002
7 #define F_b 0x004
8
9 typedef struct _TaskType {
10 Taskrun code;
11 char *name;
12 unsigned int flag; // F_STARTER ..
13 } TaskType;
3 14
4 15
5 const int max_tasktype = MAX_TASKCLASS; 16 const int max_tasktype = MAX_TASKCLASS;
6 extern __code nojob(void *, void *, void *); 17 extern __code nojob(UserManager *, void *, void *);
7 18
8 #undef DEFINETASKTYPE 19 #undef DEFINETASKTYPE
9 #define DEFINETASKTYPE(_var, _code0, _name, _type) \ 20 #define DEFINETASKTYPE(_var, _code0, _name, _type) \
10 { _code0, _name, _type }, 21 { _code0, _name, _type },
11 22