/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* philo.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cchauvet # include # include # include # include "./data.h" typedef struct s_philo { size_t id; pthread_mutex_t nb_meal_mutex; size_t nb_meal; pthread_mutex_t last_eat_mutex; size_t last_eat; pthread_mutex_t stop_mutex; bool stop; t_data *data; } t_philo; t_philo *philo_init(t_data *data); void philo_destroyer(t_philo *philo); void *philo_routine(void *arg); #endif