view 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 source

#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(UserManager *, void *, void *);

#undef DEFINETASKTYPE
#define DEFINETASKTYPE(_var, _code0, _name, _type) \
	{ _code0, _name, _type }, 

const TaskType tasktypes[] = {
	{ nojob, "no jobs", F_NONE },
	{ nojob, "no jobs", F_NONE },
	#include "task.def"
};