aboutsummaryrefslogtreecommitdiff
path: root/philo_one/src/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'philo_one/src/event.c')
-rw-r--r--philo_one/src/event.c9
1 files changed, 6 insertions, 3 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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)