aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_floor_cast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_floor_cast.c')
-rw-r--r--src/ft_floor_cast.c10
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);
}