From 0ae80bdcca096a94f8063d11130d0f6a97454393 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 19 Apr 2023 14:49:48 +0000 Subject: [PATCH] fix: helgreind --- data.c | 1 + 1 file changed, 1 insertion(+) diff --git a/data.c b/data.c index 450ce7e..823346b 100644 --- a/data.c +++ b/data.c @@ -49,6 +49,7 @@ void data_destroyer(t_data *data) pthread_mutex_unlock(&philo->stop_mutex); if (stop) i++; + usleep(1000); } pthread_mutex_destroy(&data->forks_mutex); pthread_mutex_destroy(&data->stop_mutex);