diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-01-15 22:46:05 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-01-15 22:46:05 +0100 |
| commit | b648f327b4bccc51cb19b43b4bb144f51bf79787 (patch) | |
| tree | 0f6a33fe0d9e118b0ef745c260418590ed5e9c1f /philo_one/src/main.c | |
| parent | 0ed344821bc3c872100a18289d0384d51af7e970 (diff) | |
| download | philosophers-weird.tar.gz philosophers-weird.tar.bz2 philosophers-weird.zip | |
"Fixing" the weirdest bug of my life (introduced in 5b03a0e)weird
Diffstat (limited to 'philo_one/src/main.c')
| -rw-r--r-- | philo_one/src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/philo_one/src/main.c b/philo_one/src/main.c index e2dabbc..240cc4f 100644 --- a/philo_one/src/main.c +++ b/philo_one/src/main.c @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/11/24 05:53:02 by cacharle #+# #+# */ -/* Updated: 2021/01/12 12:53:27 by cacharle ### ########.fr */ +/* Updated: 2021/01/15 22:40:50 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -29,6 +29,7 @@ static int st_destroy( static void *st_routine_flush(t_philo_conf *conf) { + pthread_mutex_unlock(&conf->mutex_stdout); // ??????????????? while (true) { pthread_mutex_lock(&conf->mutex_stdout); @@ -36,6 +37,7 @@ static void *st_routine_flush(t_philo_conf *conf) pthread_mutex_unlock(&conf->mutex_stdout); usleep(250000); } + return (NULL); } static int st_setup( |
