Mercurial > hg > Game > CbCTaskManager
annotate 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 |
rev | line source |
---|---|
13
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
1 #include "CbCTaskManager.h" |
6 | 2 #include "taskinit.h" |
3 | |
13
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
4 #define F_NONE 0x000 |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
5 #define F_STARTER 0x001 |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
6 #define F_a 0x002 |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
7 #define F_b 0x004 |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
8 |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
9 typedef struct _TaskType { |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
10 Taskrun code; |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
11 char *name; |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
12 unsigned int flag; // F_STARTER .. |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
13 } TaskType; |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
14 |
7 | 15 |
6 | 16 const int max_tasktype = MAX_TASKCLASS; |
13
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
17 extern __code nojob(UserManager *, void *, void *); |
6 | 18 |
19 #undef DEFINETASKTYPE | |
20 #define DEFINETASKTYPE(_var, _code0, _name, _type) \ | |
21 { _code0, _name, _type }, | |
22 | |
23 const TaskType tasktypes[] = { | |
7 | 24 { nojob, "no jobs", F_NONE }, |
25 { nojob, "no jobs", F_NONE }, | |
6 | 26 #include "task.def" |
27 }; | |
28 | |
29 | |
30 |