Mercurial > hg > CbC > old > DPP
view dpp2.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 | a04eccfc69ae |
line wrap: on
line source
#ifndef _DPP2_H_ #define _DPP2_H_ #define NULL (0) #include "dpp_common.h" #include "queue.h" extern __code putdown_lfork(PhilsPtr self, TaskPtr current_task); extern __code putdown_rfork(PhilsPtr self, TaskPtr current_task); extern __code eating(PhilsPtr self, TaskPtr current_task); extern __code hungry2(PhilsPtr self, TaskPtr current_task); extern __code hungry1(PhilsPtr self, TaskPtr current_task); extern __code pickup_rfork(PhilsPtr self, TaskPtr current_task); extern __code pickup_lfork(PhilsPtr self, TaskPtr current_task); extern __code thinking(PhilsPtr self, TaskPtr current_task); extern __code die(char *err); extern __code init_fork2(PhilsPtr self, int count, int id); #endif