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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #include "taskinit.h"
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
299cc57f332b prototype of fifo version.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 6
diff changeset
15
6
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 #undef DEFINETASKTYPE
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 #define DEFINETASKTYPE(_var, _code0, _name, _type) \
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 { _code0, _name, _type },
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 const TaskType tasktypes[] = {
7
299cc57f332b prototype of fifo version.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 6
diff changeset
24 { nojob, "no jobs", F_NONE },
299cc57f332b prototype of fifo version.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents: 6
diff changeset
25 { nojob, "no jobs", F_NONE },
6
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 #include "task.def"
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 };
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29
51c3a631a7bc add taskinit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30