diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-05 17:00:51 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-05 17:00:51 +0200 |
| commit | 47e1a7b4af69e1998182126310e42af83cf214ed (patch) | |
| tree | aedb74e78e9fdbd7a6593ea773d47364bd158e61 /philo_three/src/philo_three.h | |
| parent | 473cf5d7576744b679b7a504232b5ebd4b5d689f (diff) | |
| download | philosophers-47e1a7b4af69e1998182126310e42af83cf214ed.tar.gz philosophers-47e1a7b4af69e1998182126310e42af83cf214ed.tar.bz2 philosophers-47e1a7b4af69e1998182126310e42af83cf214ed.zip | |
Norming and destroy on error
Diffstat (limited to 'philo_three/src/philo_three.h')
| -rw-r--r-- | philo_three/src/philo_three.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/philo_three/src/philo_three.h b/philo_three/src/philo_three.h index e30a857..1c1b8af 100644 --- a/philo_three/src/philo_three.h +++ b/philo_three/src/philo_three.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/15 00:46:26 by cacharle #+# #+# */ -/* Updated: 2020/10/05 15:05:26 by cacharle ### ########.fr */ +/* Updated: 2020/10/05 16:54:29 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -35,6 +35,13 @@ typedef struct s_philo sem_t *sem_dead; } t_philo; +typedef struct s_sems +{ + sem_t *forks; + sem_t *sem_stdout; + sem_t *sem_dead; +} t_sems; + pid_t child_start(t_philo *arg); void event_take_fork(t_philo *arg); |
