aboutsummaryrefslogtreecommitdiff
path: root/philo_one/philo_one.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-14 01:42:10 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-14 01:42:10 +0100
commitadbe9cdb61e5d12299b8872b2ac27a48036bc95d (patch)
treee8c5028c2f813ae4ee37b741f9b0a0d83af9e6f3 /philo_one/philo_one.h
parent1a7c6c5a0ed9a5aae1fe45c3af335c120c2dc642 (diff)
downloadphilosophers-adbe9cdb61e5d12299b8872b2ac27a48036bc95d.tar.gz
philosophers-adbe9cdb61e5d12299b8872b2ac27a48036bc95d.tar.bz2
philosophers-adbe9cdb61e5d12299b8872b2ac27a48036bc95d.zip
WIP: philo_one running a bit
Diffstat (limited to 'philo_one/philo_one.h')
-rw-r--r--philo_one/philo_one.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/philo_one/philo_one.h b/philo_one/philo_one.h
index bcac634..9c888ee 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/10 01:14:27 by cacharle ### ########.fr */
+/* Updated: 2020/02/14 01:41:39 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -44,7 +44,7 @@ struct s_philo
int id;
t_bool alive;
t_watchdog watchdog;
- int time_last_eat;
+ t_time time_last_eat;
t_philo_state state;
pthread_t thread;
};
@@ -55,8 +55,8 @@ typedef struct
t_philo *philo;
t_fork *fork_left;
t_fork *fork_right;
+ pthread_mutex_t *mutex_stdout;
} t_routine_arg;
-tine_death_arg;
/*
** fork.c
@@ -80,7 +80,7 @@ t_bool philos_starved(t_philo *philos, int num);
** routine.c
*/
-void *routine_philo(t_routine_arg *arg);
-void *routine_death(t_routine_arg *arg);
+void *routine_philo(void *void_arg);
+void *routine_death(void *void_arg);
#endif