From a69a877b3a2758aafe3de0db87a56063b28ed00f Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 8 Jan 2021 22:11:19 +0100 Subject: Add sem_grab in philo_two and philo_three to fix philosophers each taking 1 fork --- philo_two/src/philo_two.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 bde41c1..91cdbef 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/04 09:35:42 by cacharle ### ########.fr */ +/* Updated: 2021/01/08 20:10:36 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -33,6 +33,7 @@ typedef struct sem_t *sem_stdout; sem_t *sem_finish; sem_t *sem_start; + sem_t *sem_grab; } t_philo_conf; typedef struct -- cgit