aboutsummaryrefslogtreecommitdiff
path: root/philo_one/src/philo.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-05 15:06:03 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-05 15:06:03 +0200
commit473cf5d7576744b679b7a504232b5ebd4b5d689f (patch)
tree6518e4fd26bf4584e5a2d72b9e1289473bce76da /philo_one/src/philo.c
parenta237321ee53f44793ebc8b9db26b743f092b5e40 (diff)
downloadphilosophers-473cf5d7576744b679b7a504232b5ebd4b5d689f.tar.gz
philosophers-473cf5d7576744b679b7a504232b5ebd4b5d689f.tar.bz2
philosophers-473cf5d7576744b679b7a504232b5ebd4b5d689f.zip
Norming
Diffstat (limited to 'philo_one/src/philo.c')
-rw-r--r--philo_one/src/philo.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/philo_one/src/philo.c b/philo_one/src/philo.c
index 45a8a17..6ea1024 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: 2020/09/30 09:48:12 by cacharle ### ########.fr */
+/* Updated: 2020/10/05 14:29:10 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -39,8 +39,11 @@ bool philos_start(t_philo *philos, int num)
i = -1;
while (++i < num)
{
- if (pthread_create(&philos[i].thread, NULL,
- (t_routine)routine_philo, (void*)(philos + i)) == -1)
+ if (pthread_create(
+ &philos[i].thread,
+ NULL,
+ (t_routine)routine_philo,
+ (void*)(philos + i)) == -1)
return (false);
}
return (true);