diff options
| author | Dominik Kaiser | 2025-01-18 17:11:11 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-01-18 17:11:11 +0100 |
| commit | 0813f4153af4723d3fddffea6926243f3a94fa57 (patch) | |
| tree | 4d0c28ccea57b0444d1ebe82c5b0f9ab78b1e872 /philo/src/main.c | |
| parent | 22e40654fadb2373697742e0ff8deb6ad87c6601 (diff) | |
| download | Philosophers-0813f4153af4723d3fddffea6926243f3a94fa57.tar.gz Philosophers-0813f4153af4723d3fddffea6926243f3a94fa57.zip | |
Outsource checking for philos_must_eat to main thread
Diffstat (limited to 'philo/src/main.c')
| -rw-r--r-- | philo/src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/philo/src/main.c b/philo/src/main.c index be9e1b7..879bf0b 100644 --- a/philo/src/main.c +++ b/philo/src/main.c @@ -6,7 +6,7 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/01/14 17:13:30 by dkaiser #+# #+# */ -/* Updated: 2025/01/18 16:59:24 by dkaiser ### ########.fr */ +/* Updated: 2025/01/18 17:09:26 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) if (result != EXIT_SUCCESS) return (result); data.simulation_running = 1; - result = run_simulation(data.nbr_of_philos, philos); + result = run_simulation(data.nbr_of_philos, philos, &data); free(philos); free(data.forks); return (result); |
