aboutsummaryrefslogtreecommitdiff
path: root/philo_three/src/child.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-01-03 14:04:22 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-01-03 14:04:22 +0100
commite874ad94a31a8259b8eb7ad2865767c081bcd279 (patch)
treee629a6cef53b2c6cafcde9f8bbf5d1f7678753d6 /philo_three/src/child.c
parent592c515b742222c637478b3339b95cd2de8b4379 (diff)
downloadphilosophers-e874ad94a31a8259b8eb7ad2865767c081bcd279.tar.gz
philosophers-e874ad94a31a8259b8eb7ad2865767c081bcd279.tar.bz2
philosophers-e874ad94a31a8259b8eb7ad2865767c081bcd279.zip
Fixing philo_one/philo_two dying by sleeping more when checking the death, Fixing timestamp in the wrong order in philo_three
Diffstat (limited to 'philo_three/src/child.c')
-rw-r--r--philo_three/src/child.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/philo_three/src/child.c b/philo_three/src/child.c
index bce5d21..e9c743b 100644
--- a/philo_three/src/child.c
+++ b/philo_three/src/child.c
@@ -6,7 +6,7 @@
/* By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/09/30 14:36:16 by cacharle #+# #+# */
-/* Updated: 2021/01/02 11:58:03 by cacharle ### ########.fr */
+/* Updated: 2021/01/03 13:47:27 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -20,7 +20,7 @@ void *routine_death(t_philo *philo)
while (current - philo->time_last_eat < philo->conf->timeout_death)
{
current = h_time_now();
- usleep(200);
+ usleep(500);
}
event_die(philo);
return (NULL);