view dpp_common.h @ 3:6bf69a0f2e24

Make dpp2
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Sun, 20 Dec 2015 16:46:24 +0900
parents b15128ab0324
children b7d63c5499e7
line wrap: on
line source

#ifndef _DPP_COMMON_H_
#define _DPP_COMMON_H_
#define NULL (0)

typedef struct phils {
	int id;
	struct fork *right_fork;
	struct fork *left_fork;
	struct phils *right;
	struct phils *left;
	__code (*next)(struct phils *, struct task *);
} Phils, *PhilsPtr;

typedef struct fork {
	int id;
	struct phils *owner;
} Fork, *ForkPtr;

#endif