fix: helgreind
This commit is contained in:
parent
e7a85b4d9d
commit
0ae80bdcca
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user