fixed phils

This commit is contained in:
Matthos Denys 2021-05-20 16:18:41 +03:00
parent e27b4bcc36
commit ee083cf6cc
3 changed files with 5 additions and 6 deletions

View File

@ -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);

View File

@ -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 */
/* */
/* ************************************************************************** */

View File

@ -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 */
/* */
/* ************************************************************************** */