From 6e383ed9d60c6de0ffdc7882cbe339542cd81c79 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Thu, 1 Jun 2023 14:24:36 +0200 Subject: [PATCH] ok j'arrette de troll --- philo/philo_routine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/philo/philo_routine.c b/philo/philo_routine.c index e781d21..b3cc2a6 100644 --- a/philo/philo_routine.c +++ b/philo/philo_routine.c @@ -6,7 +6,7 @@ /* By: cchauvet last_eat_mutex); philo->last_eat = get_time(); pthread_mutex_unlock(&philo->last_eat_mutex); + usleep(get_time_eat(philo, data) * 1000); pthread_mutex_unlock(&data->forks[philo->id]); pthread_mutex_unlock(&data->forks[(philo->id + 1) % data->nb_philos]); if (check(data))