Problème de norme :'D
This commit is contained in:
parent
ffb68409b1
commit
4d97d3801e
|
@ -6,7 +6,7 @@
|
|||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/08 20:08:33 by erey-bet #+# #+# */
|
||||
/* Updated: 2023/03/31 18:21:03 by erey-bet ### ########.fr */
|
||||
/* Updated: 2023/03/31 18:24:55 by erey-bet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -127,7 +127,7 @@ void *philosopher(t_philo *philo)
|
|||
pthread_mutex_lock(&philo->same->mutex[nbr_philo + 1]);
|
||||
pthread_mutex_lock(&philo->same->mutex[nbr_philo]);
|
||||
if (!*philo->same->death && (config->must_eat == -1
|
||||
|| (config->must_eat > -1 && only->eat < config->must_eat)))
|
||||
|| (config->must_eat > -1 && only->eat < config->must_eat)))
|
||||
{
|
||||
*philo->same->death = 1;
|
||||
message(only->time, only->id, "died\n");
|
||||
|
|
Loading…
Reference in a new issue