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 --- common/common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/common.h') diff --git a/common/common.h b/common/common.h index 30a00a2..617db1a 100644 --- a/common/common.h +++ b/common/common.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/08 22:58:35 by cacharle #+# #+# */ -/* Updated: 2021/01/02 11:01:23 by cacharle ### ########.fr */ +/* Updated: 2021/01/03 14:02:38 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -61,6 +61,7 @@ int h_err(int ret, const char *format, char *str); */ void philo_put_set_initial_time(void); -void philo_put(size_t id, t_philo_event event); +void philo_put( + size_t id, t_philo_event event, t_time initial_time); #endif -- cgit