From 47e1a7b4af69e1998182126310e42af83cf214ed Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 5 Oct 2020 17:00:51 +0200 Subject: Norming and destroy on error --- philo_three/src/philo_three.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'philo_three/src/philo_three.h') diff --git a/philo_three/src/philo_three.h b/philo_three/src/philo_three.h index e30a857..1c1b8af 100644 --- a/philo_three/src/philo_three.h +++ b/philo_three/src/philo_three.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/15 00:46:26 by cacharle #+# #+# */ -/* Updated: 2020/10/05 15:05:26 by cacharle ### ########.fr */ +/* Updated: 2020/10/05 16:54:29 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -35,6 +35,13 @@ typedef struct s_philo sem_t *sem_dead; } t_philo; +typedef struct s_sems +{ + sem_t *forks; + sem_t *sem_stdout; + sem_t *sem_dead; +} t_sems; + pid_t child_start(t_philo *arg); void event_take_fork(t_philo *arg); -- cgit