aboutsummaryrefslogtreecommitdiff
path: root/philo_one/philo_one.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-15 00:36:04 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-15 00:36:04 +0100
commit6a1e91750ee43fccb6160af0f44139698c8dfdc3 (patch)
tree70a9bc690134362459c5617b0213e2822d68ed51 /philo_one/philo_one.h
parentf6a960c09c9593af72ff6da2c3ed501e01a0f429 (diff)
downloadphilosophers-6a1e91750ee43fccb6160af0f44139698c8dfdc3.tar.gz
philosophers-6a1e91750ee43fccb6160af0f44139698c8dfdc3.tar.bz2
philosophers-6a1e91750ee43fccb6160af0f44139698c8dfdc3.zip
philo_two working (again with the hack?)
Diffstat (limited to 'philo_one/philo_one.h')
-rw-r--r--philo_one/philo_one.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/philo_one/philo_one.h b/philo_one/philo_one.h
index 486cfeb..d7c1aef 100644
--- a/philo_one/philo_one.h
+++ b/philo_one/philo_one.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/24 06:11:16 by cacharle #+# #+# */
-/* Updated: 2020/02/14 20:23:15 by cacharle ### ########.fr */
+/* Updated: 2020/02/14 21:37:45 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -65,6 +65,7 @@ typedef struct
t_fork *forks_new(int num);
void forks_destroy(t_fork *forks, int num);
t_routine_arg *forks_dispatch(t_philo *philos, t_fork *forks, t_philo_args *args);
+void fork_switch(t_fork *fork);
/*
** philo.c
@@ -83,4 +84,13 @@ t_bool philos_starved(t_philo *philos, int num);
void *routine_philo(void *void_arg);
void *routine_death(void *void_arg);
+/*
+** io.c
+*/
+
+void io_eat(t_routine_arg *arg);
+void io_think(t_routine_arg *arg);
+void io_sleep(t_routine_arg *arg);
+void io_die(t_routine_arg *arg);
+
#endif