From e874ad94a31a8259b8eb7ad2865767c081bcd279 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 3 Jan 2021 14:04:22 +0100 Subject: Fixing philo_one/philo_two dying by sleeping more when checking the death, Fixing timestamp in the wrong order in philo_three --- 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 f0c55ba..8261b0c 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/02 11:20:45 by cacharle ### ########.fr */ +/* Updated: 2021/01/03 13:55:04 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -29,6 +29,7 @@ typedef struct t_time timeout_eat; t_time timeout_sleep; long int meal_num; + t_time initial_time; sem_t *sem_stdout; sem_t *sem_finish; } t_philo_conf; -- cgit