diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-27 15:44:12 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-27 15:44:33 +0100 |
commit | a4342816383dd39666bb6007210eb38b6819469a (patch) | |
tree | 7f7f07dd5e4777bcea1720f91377ff239f7aa80b /src/ft_floor_cast.c | |
parent | test map update (diff) | |
download | 42-cub3d-a4342816383dd39666bb6007210eb38b6819469a.tar.gz 42-cub3d-a4342816383dd39666bb6007210eb38b6819469a.tar.bz2 42-cub3d-a4342816383dd39666bb6007210eb38b6819469a.tar.xz 42-cub3d-a4342816383dd39666bb6007210eb38b6819469a.tar.zst 42-cub3d-a4342816383dd39666bb6007210eb38b6819469a.zip |
Five threads for compat
Diffstat (limited to 'src/ft_floor_cast.c')
-rw-r--r-- | src/ft_floor_cast.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ft_floor_cast.c b/src/ft_floor_cast.c index 3962431..874a398 100644 --- a/src/ft_floor_cast.c +++ b/src/ft_floor_cast.c @@ -63,7 +63,7 @@ void void *ft_floor_cast(void *vargp) { - pthread_t tid[4]; + pthread_t tid[5]; t_cub *cl; cl = (t_cub *)vargp; @@ -71,10 +71,12 @@ void pthread_create(&tid[1], 0x0, ft_floor_two, (void*)cl); pthread_create(&tid[2], 0x0, ft_floor_three, (void*)cl); pthread_create(&tid[3], 0x0, ft_floor_four, (void*)cl); - pthread_join(tid[0], 0x0); - pthread_join(tid[1], 0x0); - pthread_join(tid[2], 0x0); + pthread_create(&tid[4], 0x0, ft_floor_five, (void*)cl); + pthread_join(tid[4], 0x0); pthread_join(tid[3], 0x0); + pthread_join(tid[2], 0x0); + pthread_join(tid[1], 0x0); + pthread_join(tid[0], 0x0); pthread_exit(0x0); return (0x0); } |