fix: helgreind

This commit is contained in:
Camille Chauvet 2023-04-19 14:49:48 +00:00
parent e7a85b4d9d
commit 0ae80bdcca

1
data.c
View File

@ -49,6 +49,7 @@ void data_destroyer(t_data *data)
pthread_mutex_unlock(&philo->stop_mutex); pthread_mutex_unlock(&philo->stop_mutex);
if (stop) if (stop)
i++; i++;
usleep(1000);
} }
pthread_mutex_destroy(&data->forks_mutex); pthread_mutex_destroy(&data->forks_mutex);
pthread_mutex_destroy(&data->stop_mutex); pthread_mutex_destroy(&data->stop_mutex);