aboutsummaryrefslogtreecommitdiff
path: root/philo_two/src/philo_two.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-01-10 13:34:50 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-01-10 13:40:02 +0100
commitd552a2af95a3e03f937a94945369536d1eaae74a (patch)
treedcbc6bb1af33219730086cfb5ca1ce0b83a17187 /philo_two/src/philo_two.h
parent5b03a0e341881ace66dc5cec5dcfba82fce8221d (diff)
downloadphilosophers-d552a2af95a3e03f937a94945369536d1eaae74a.tar.gz
philosophers-d552a2af95a3e03f937a94945369536d1eaae74a.tar.bz2
philosophers-d552a2af95a3e03f937a94945369536d1eaae74a.zip
Updated philo_two with better setup, Norming philo_two
Diffstat (limited to 'philo_two/src/philo_two.h')
-rw-r--r--philo_two/src/philo_two.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/philo_two/src/philo_two.h b/philo_two/src/philo_two.h
index 0126430..a186d6c 100644
--- a/philo_two/src/philo_two.h
+++ b/philo_two/src/philo_two.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/14 22:47:23 by cacharle #+# #+# */
-/* Updated: 2021/01/10 10:03:58 by cacharle ### ########.fr */
+/* Updated: 2021/01/10 13:36:51 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -22,6 +22,8 @@
# include "common.h"
+# define PHILO_SEM_EAT_PREFIX "semaphore_philo_two_eat_"
+
typedef struct
{
long int philo_num;
@@ -51,10 +53,16 @@ typedef struct
*/
void *routine_philo(t_philo *arg);
-void *routine_death(t_philo *arg);
t_philo *routine_create_philos(t_philo_conf *conf);
/*
+** routine_meta.c
+*/
+
+void *routine_flush(t_philo_conf *conf);
+void *routine_meal_num(t_philo_conf *conf);
+
+/*
** io.c
*/