From 7aab8f34e8a238ce0688bf9f7e7f0b731902580f Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 2 Jan 2021 12:08:59 +0100 Subject: Updated philo_two with philo_three logic, Norming philo_two and philo_three --- philo_two/src/philo_two.h | 7 ++----- 1 file changed, 2 insertions(+), 5 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 ec5783b..f0c55ba 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/01 14:18:57 by charles ### ########.fr */ +/* Updated: 2021/01/02 11:20:45 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -29,10 +29,8 @@ typedef struct t_time timeout_eat; t_time timeout_sleep; long int meal_num; - bool all_alive; - long int meal_num_finished_counter; sem_t *sem_stdout; - sem_t *sem_meal_num_finished_counter; + sem_t *sem_finish; } t_philo_conf; typedef struct @@ -47,7 +45,6 @@ typedef struct ** routine.c */ -bool philo_finished(t_philo_conf *conf); void *routine_philo(t_philo *arg); void *routine_death(t_philo *arg); t_philo *routine_create_philos(t_philo_conf *conf, sem_t *forks); -- cgit