aboutsummaryrefslogtreecommitdiff
path: root/philo_two/src/philo_two.h
diff options
context:
space:
mode:
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
*/