diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-01-03 14:04:22 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-01-03 14:04:22 +0100 |
| commit | e874ad94a31a8259b8eb7ad2865767c081bcd279 (patch) | |
| tree | e629a6cef53b2c6cafcde9f8bbf5d1f7678753d6 /philo_one/src/philo_one.h | |
| parent | 592c515b742222c637478b3339b95cd2de8b4379 (diff) | |
| download | philosophers-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_one/src/philo_one.h')
| -rw-r--r-- | philo_one/src/philo_one.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/philo_one/src/philo_one.h b/philo_one/src/philo_one.h index b566f80..de5f2c4 100644 --- a/philo_one/src/philo_one.h +++ b/philo_one/src/philo_one.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/11/24 06:11:16 by cacharle #+# #+# */ -/* Updated: 2021/01/01 13:51:29 by charles ### ########.fr */ +/* Updated: 2021/01/03 13:56:16 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -37,6 +37,7 @@ typedef struct long int meal_num; bool all_alive; long int meal_num_finished_counter; + t_time initial_time; pthread_mutex_t mutex_stdout; pthread_mutex_t mutex_meal_num_finished_counter; } t_philo_conf; |
