aboutsummaryrefslogtreecommitdiff
path: root/philo_one/src/philo.c
diff options
context:
space:
mode:
Diffstat (limited to 'philo_one/src/philo.c')
-rw-r--r--philo_one/src/philo.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/philo_one/src/philo.c b/philo_one/src/philo.c
index f86dfb6..589e1c7 100644
--- a/philo_one/src/philo.c
+++ b/philo_one/src/philo.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/09 23:47:14 by cacharle #+# #+# */
-/* Updated: 2021/01/04 10:42:53 by cacharle ### ########.fr */
+/* Updated: 2021/01/08 16:15:10 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -54,7 +54,11 @@ bool philos_start(t_philo *philos, long int num)
}
i = -1;
while (++i < num)
+ {
pthread_mutex_unlock(&philos[i].mutex_start);
+ /* usleep(1000); */
+ }
+
return (true);
}