Finish thx to garfi the goat
This commit is contained in:
parent
d948c639ec
commit
501b45d763
7 changed files with 31 additions and 8 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/06/04 11:30:25 by rparodi #+# #+# */
|
||||
/* Updated: 2024/07/11 17:34:21 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/07/18 19:59:24 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ t_error ft_init_thread(t_program *prog, t_mutex *forks)
|
|||
ERROR, prog, forks);
|
||||
i++;
|
||||
}
|
||||
while (--i > 0)
|
||||
while (i-- > 0)
|
||||
pthread_join(prog->philos[i].thread, NULL);
|
||||
pthread_join(watch_dogs, NULL);
|
||||
return (NO_ERROR);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue