From ebbd81e4312d945b359d2761acfeb613da1f98c8 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 9 Jan 2021 14:40:23 +0100 Subject: Added antidead lock in philo_one --- philo_one/src/philo_one.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'philo_one/src/philo_one.h') diff --git a/philo_one/src/philo_one.h b/philo_one/src/philo_one.h index 2ebe708..910dfe8 100644 --- a/philo_one/src/philo_one.h +++ b/philo_one/src/philo_one.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/11/24 06:11:16 by cacharle #+# #+# */ -/* Updated: 2021/01/04 10:38:44 by cacharle ### ########.fr */ +/* Updated: 2021/01/09 14:26:58 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -82,7 +82,7 @@ void *routine_death(t_philo *arg); ** io.c */ -void event_take_fork(t_philo *arg); +void event_take_fork(t_philo *arg, pthread_mutex_t *mutex_fork); void event_eat(t_philo *arg); void event_think(t_philo *arg); void event_sleep( -- cgit