aboutsummaryrefslogtreecommitdiff
path: root/philo_one/src/philo_one.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-12-30 14:06:17 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-12-30 14:06:17 +0100
commitcf2ef2c3901f3da524079a9ad912dfb99e115a7e (patch)
tree7868f1f02a3fab1aa74606c1f9a3a00c0287976f /philo_one/src/philo_one.h
parent2baa67fd7ad31fe53ab21d257a104478e787fb62 (diff)
downloadphilosophers-cf2ef2c3901f3da524079a9ad912dfb99e115a7e.tar.gz
philosophers-cf2ef2c3901f3da524079a9ad912dfb99e115a7e.tar.bz2
philosophers-cf2ef2c3901f3da524079a9ad912dfb99e115a7e.zip
Fixed meal_num args for philo_one
Diffstat (limited to 'philo_one/src/philo_one.h')
-rw-r--r--philo_one/src/philo_one.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/philo_one/src/philo_one.h b/philo_one/src/philo_one.h
index ae7d040..341c1a8 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: 2020/10/05 14:28:24 by cacharle ### ########.fr */
+/* Updated: 2020/12/30 13:44:14 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -35,7 +35,9 @@ typedef struct
t_time timeout_sleep;
long int meal_num;
bool all_alive;
+ long int meal_num_finished_counter;
pthread_mutex_t mutex_stdout;
+ pthread_mutex_t mutex_meal_num_finished_counter;
} t_philo_conf;
typedef struct s_philo