This commit is contained in:
djonker 2023-05-23 04:07:01 +02:00
parent 619ebba469
commit 4c054fcdf0

View File

@ -6,7 +6,7 @@
/* By: houtworm <codam@houtworm.net> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/22 07:34:59 by houtworm #+# #+# */
/* Updated: 2023/05/23 04:04:00 by houtworm \___)=(___/ */
/* Updated: 2023/05/23 04:06:37 by houtworm \___)=(___/ */
/* */
/* ************************************************************************** */
@ -19,7 +19,6 @@ int ft_releasetheminds(t_strct *strct, int m)
i = 0;
if (m)
{
/*strct->strtt = ft_time();*/
while (i < (strct->philos * 2) - 1)
{
sem_post(strct->hold);
@ -76,7 +75,6 @@ void *ft_alive(void *pointer)
t_philo *philo;
philo = pointer;
/*usleep(*philo->dietime);*/
sem_wait(philo->hold);
while (ft_time() - philo->lastfood < *philo->dietime)
usleep(500);