/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* philo.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/03/08 14:51:16 by erey-bet #+# #+# */ /* Updated: 2023/03/13 14:01:59 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef PHILO_H # define PHILO_H # include "../utils/utils.h" # include # include # include # include typedef struct s_config { int nbr_philo; int time_die; int time_eat; int time_sleep; int must_eat; } t_config; typedef struct s_philo { t_config conf; pthread_mutex_t mutex; int *id; } t_philo; int parsing(char *argv[], t_config *conf); int manage_threads(t_config *conf); void *philosopher(t_philo *philo); #endif