fixed phils
This commit is contained in:
parent
e27b4bcc36
commit
ee083cf6cc
@ -6,7 +6,7 @@
|
||||
/* By: mdenys <mdenys@student.21-school.ru> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/05/20 12:12:43 by mdenys #+# #+# */
|
||||
/* Updated: 2021/05/20 14:12:10 by mdenys ### ########.fr */
|
||||
/* Updated: 2021/05/20 16:17:35 by mdenys ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -18,13 +18,12 @@ void *run_trhead(t_philo *philo)
|
||||
{
|
||||
if (philo->all_struct->opt)
|
||||
{
|
||||
|
||||
if (philo->count_eat == philo->all_struct->etarate_meal)
|
||||
{
|
||||
philo->all_struct->smert = 42;
|
||||
return (NULL);
|
||||
}
|
||||
}
|
||||
else
|
||||
cycle(philo);
|
||||
}
|
||||
return (NULL);
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
/* By: mdenys <mdenys@student.21-school.ru> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/05/20 12:12:48 by mdenys #+# #+# */
|
||||
/* Updated: 2021/05/20 13:08:58 by mdenys ### ########.fr */
|
||||
/* Updated: 2021/05/20 16:10:56 by mdenys ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
/* By: mdenys <mdenys@student.21-school.ru> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/05/20 12:12:50 by mdenys #+# #+# */
|
||||
/* Updated: 2021/05/20 14:13:00 by mdenys ### ########.fr */
|
||||
/* Updated: 2021/05/20 16:10:26 by mdenys ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user