diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-01-02 10:51:53 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-01-02 10:51:53 +0100 |
| commit | 280dace8bf97242151faf8297af31de67f77085c (patch) | |
| tree | 7fa68ce3deb4d9236d13de5c05201fcb491b6887 /philo_one/src/event.c | |
| parent | a73b1e33ae3a4f55e3dd19defa1b853bc58f1eeb (diff) | |
| download | philosophers-280dace8bf97242151faf8297af31de67f77085c.tar.gz philosophers-280dace8bf97242151faf8297af31de67f77085c.tar.bz2 philosophers-280dace8bf97242151faf8297af31de67f77085c.zip | |
Norming philo_one
Diffstat (limited to 'philo_one/src/event.c')
| -rw-r--r-- | philo_one/src/event.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/philo_one/src/event.c b/philo_one/src/event.c index ab8da0b..2a0c302 100644 --- a/philo_one/src/event.c +++ b/philo_one/src/event.c @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 21:37:50 by cacharle #+# #+# */ -/* Updated: 2021/01/01 13:46:50 by charles ### ########.fr */ +/* Updated: 2021/01/02 10:49:08 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -47,7 +47,10 @@ void event_think(t_philo *arg) pthread_mutex_unlock(&arg->conf->mutex_stdout); } -void event_sleep(t_philo *arg, pthread_mutex_t *fork_right, pthread_mutex_t *fork_left) +void event_sleep( + t_philo *arg, + pthread_mutex_t *fork_right, + pthread_mutex_t *fork_left) { if (philo_finished(arg->conf)) return ; |
