From f6a960c09c9593af72ff6da2c3ed501e01a0f429 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 14 Feb 2020 21:24:22 +0100 Subject: philo one working (with what may be a hack) --- philo_one/philo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'philo_one/philo.c') diff --git a/philo_one/philo.c b/philo_one/philo.c index c585e34..84dfd7f 100644 --- a/philo_one/philo.c +++ b/philo_one/philo.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/09 23:47:14 by cacharle #+# #+# */ -/* Updated: 2020/02/14 01:38:45 by cacharle ### ########.fr */ +/* Updated: 2020/02/14 20:07:57 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -30,7 +30,7 @@ t_philo *philos_new(int num) return (philos); } -void philos_destroy(t_philo *philos, int num) +void philos_destroy(t_philo *philos, int num) { (void)num; if (philos == NULL) @@ -62,7 +62,7 @@ void philos_join(t_philo *philos, int num) if (philos[i].alive) { philos[i].alive = FALSE; - /* pthread_join(philos[i].thread, NULL); */ + pthread_join(philos[i].thread, NULL); } } } -- cgit