bla
This commit is contained in:
parent
619ebba469
commit
4c054fcdf0
@ -6,7 +6,7 @@
|
|||||||
/* By: houtworm <codam@houtworm.net> +#+ +:+ +#+ */
|
/* By: houtworm <codam@houtworm.net> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/05/22 07:34:59 by houtworm #+# #+# */
|
/* 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;
|
i = 0;
|
||||||
if (m)
|
if (m)
|
||||||
{
|
{
|
||||||
/*strct->strtt = ft_time();*/
|
|
||||||
while (i < (strct->philos * 2) - 1)
|
while (i < (strct->philos * 2) - 1)
|
||||||
{
|
{
|
||||||
sem_post(strct->hold);
|
sem_post(strct->hold);
|
||||||
@ -76,7 +75,6 @@ void *ft_alive(void *pointer)
|
|||||||
t_philo *philo;
|
t_philo *philo;
|
||||||
|
|
||||||
philo = pointer;
|
philo = pointer;
|
||||||
/*usleep(*philo->dietime);*/
|
|
||||||
sem_wait(philo->hold);
|
sem_wait(philo->hold);
|
||||||
while (ft_time() - philo->lastfood < *philo->dietime)
|
while (ft_time() - philo->lastfood < *philo->dietime)
|
||||||
usleep(500);
|
usleep(500);
|
||||||
|
Loading…
Reference in New Issue
Block a user