fix: helgreind
This commit is contained in:
1
data.c
1
data.c
@ -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);
|
||||||
|
Reference in New Issue
Block a user