From d552a2af95a3e03f937a94945369536d1eaae74a Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 10 Jan 2021 13:34:50 +0100 Subject: Updated philo_two with better setup, Norming philo_two --- philo_two/src/philo_two.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'philo_two/src/philo_two.h') diff --git a/philo_two/src/philo_two.h b/philo_two/src/philo_two.h index 0126430..a186d6c 100644 --- a/philo_two/src/philo_two.h +++ b/philo_two/src/philo_two.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 22:47:23 by cacharle #+# #+# */ -/* Updated: 2021/01/10 10:03:58 by cacharle ### ########.fr */ +/* Updated: 2021/01/10 13:36:51 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -22,6 +22,8 @@ # include "common.h" +# define PHILO_SEM_EAT_PREFIX "semaphore_philo_two_eat_" + typedef struct { long int philo_num; @@ -51,9 +53,15 @@ typedef struct */ void *routine_philo(t_philo *arg); -void *routine_death(t_philo *arg); t_philo *routine_create_philos(t_philo_conf *conf); +/* +** routine_meta.c +*/ + +void *routine_flush(t_philo_conf *conf); +void *routine_meal_num(t_philo_conf *conf); + /* ** io.c */ -- cgit