diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-01-09 14:40:23 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-01-09 14:40:23 +0100 |
| commit | ebbd81e4312d945b359d2761acfeb613da1f98c8 (patch) | |
| tree | 5ac8f109d8f840e57f001b4739a1b2472a0a2df2 /philo_one/src/philo_one.h | |
| parent | a69a877b3a2758aafe3de0db87a56063b28ed00f (diff) | |
| download | philosophers-ebbd81e4312d945b359d2761acfeb613da1f98c8.tar.gz philosophers-ebbd81e4312d945b359d2761acfeb613da1f98c8.tar.bz2 philosophers-ebbd81e4312d945b359d2761acfeb613da1f98c8.zip | |
Added antidead lock in philo_one
Diffstat (limited to 'philo_one/src/philo_one.h')
| -rw-r--r-- | philo_one/src/philo_one.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/philo_one/src/philo_one.h b/philo_one/src/philo_one.h index 2ebe708..910dfe8 100644 --- a/philo_one/src/philo_one.h +++ b/philo_one/src/philo_one.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/11/24 06:11:16 by cacharle #+# #+# */ -/* Updated: 2021/01/04 10:38:44 by cacharle ### ########.fr */ +/* Updated: 2021/01/09 14:26:58 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -82,7 +82,7 @@ void *routine_death(t_philo *arg); ** io.c */ -void event_take_fork(t_philo *arg); +void event_take_fork(t_philo *arg, pthread_mutex_t *mutex_fork); void event_eat(t_philo *arg); void event_think(t_philo *arg); void event_sleep( |
