From 280dace8bf97242151faf8297af31de67f77085c Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 2 Jan 2021 10:51:53 +0100 Subject: Norming philo_one --- philo_one/src/event.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'philo_one/src/event.c') diff --git a/philo_one/src/event.c b/philo_one/src/event.c index ab8da0b..2a0c302 100644 --- a/philo_one/src/event.c +++ b/philo_one/src/event.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 21:37:50 by cacharle #+# #+# */ -/* Updated: 2021/01/01 13:46:50 by charles ### ########.fr */ +/* Updated: 2021/01/02 10:49:08 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -47,7 +47,10 @@ void event_think(t_philo *arg) pthread_mutex_unlock(&arg->conf->mutex_stdout); } -void event_sleep(t_philo *arg, pthread_mutex_t *fork_right, pthread_mutex_t *fork_left) +void event_sleep( + t_philo *arg, + pthread_mutex_t *fork_right, + pthread_mutex_t *fork_left) { if (philo_finished(arg->conf)) return ; -- cgit