aboutsummaryrefslogtreecommitdiff
path: root/philo_three/src/philo_three.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-01-10 14:26:22 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-01-10 14:26:22 +0100
commit051e5fa4382a629b76f32e46d3e766ed2eb306fc (patch)
tree1ccd0625181cdc58cf6499ece8c2a48e1342d303 /philo_three/src/philo_three.h
parentd552a2af95a3e03f937a94945369536d1eaae74a (diff)
downloadphilosophers-051e5fa4382a629b76f32e46d3e766ed2eb306fc.tar.gz
philosophers-051e5fa4382a629b76f32e46d3e766ed2eb306fc.tar.bz2
philosophers-051e5fa4382a629b76f32e46d3e766ed2eb306fc.zip
Fixing philo_three destructor, Norming philo_three
Diffstat (limited to 'philo_three/src/philo_three.h')
-rw-r--r--philo_three/src/philo_three.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/philo_three/src/philo_three.h b/philo_three/src/philo_three.h
index f11b8c7..76819d8 100644
--- a/philo_three/src/philo_three.h
+++ b/philo_three/src/philo_three.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/15 00:46:26 by cacharle #+# #+# */
-/* Updated: 2021/01/10 10:26:27 by cacharle ### ########.fr */
+/* Updated: 2021/01/10 14:00:13 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -61,12 +61,28 @@ typedef struct s_philo
sem_t *sem_eat;
} t_philo;
+/*
+** child.c
+*/
+
pid_t child_start(t_philo *arg);
+/*
+** event.c
+*/
+
void event_take_fork(t_philo *arg);
void event_eat(t_philo *arg);
void event_think(t_philo *arg);
void event_sleep(t_philo *arg);
void event_die(t_philo *arg);
+/*
+** helper.c
+*/
+
+void h_destroy_sem(const char *name, sem_t *sem);
+bool h_sem_create(
+ const char *name, unsigned int value, sem_t **sem);
+
#endif