diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-01-02 12:08:59 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-01-02 12:08:59 +0100 |
| commit | 7aab8f34e8a238ce0688bf9f7e7f0b731902580f (patch) | |
| tree | 6ab0541168d07c2755c51d9ef6875012105816e8 /philo_two/src/philo_two.h | |
| parent | 280dace8bf97242151faf8297af31de67f77085c (diff) | |
| download | philosophers-7aab8f34e8a238ce0688bf9f7e7f0b731902580f.tar.gz philosophers-7aab8f34e8a238ce0688bf9f7e7f0b731902580f.tar.bz2 philosophers-7aab8f34e8a238ce0688bf9f7e7f0b731902580f.zip | |
Updated philo_two with philo_three logic, Norming philo_two and philo_three
Diffstat (limited to 'philo_two/src/philo_two.h')
| -rw-r--r-- | philo_two/src/philo_two.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/philo_two/src/philo_two.h b/philo_two/src/philo_two.h index ec5783b..f0c55ba 100644 --- a/philo_two/src/philo_two.h +++ b/philo_two/src/philo_two.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 22:47:23 by cacharle #+# #+# */ -/* Updated: 2021/01/01 14:18:57 by charles ### ########.fr */ +/* Updated: 2021/01/02 11:20:45 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -29,10 +29,8 @@ typedef struct t_time timeout_eat; t_time timeout_sleep; long int meal_num; - bool all_alive; - long int meal_num_finished_counter; sem_t *sem_stdout; - sem_t *sem_meal_num_finished_counter; + sem_t *sem_finish; } t_philo_conf; typedef struct @@ -47,7 +45,6 @@ typedef struct ** routine.c */ -bool philo_finished(t_philo_conf *conf); void *routine_philo(t_philo *arg); void *routine_death(t_philo *arg); t_philo *routine_create_philos(t_philo_conf *conf, sem_t *forks); |
