view src/taskinit.cbc @ 20:29835fc96f9f default tip

add Scheduler add some documents.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Thu, 14 Jan 2010 15:08:06 +0900
parents f06fb0370caf
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"
};