From 473cf5d7576744b679b7a504232b5ebd4b5d689f Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 5 Oct 2020 15:06:03 +0200 Subject: Norming --- philo_one/src/event.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'philo_one/src/event.c') diff --git a/philo_one/src/event.c b/philo_one/src/event.c index 8952212..5261f4c 100644 --- a/philo_one/src/event.c +++ b/philo_one/src/event.c @@ -1,12 +1,12 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* io.c :+: :+: :+: */ +/* event.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 21:37:50 by cacharle #+# #+# */ -/* Updated: 2020/09/30 09:43:31 by cacharle ### ########.fr */ +/* Updated: 2020/10/05 14:27:39 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -48,7 +48,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) { pthread_mutex_lock(&arg->conf->mutex_stdout); if (!arg->conf->all_alive) -- cgit