diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-24 15:28:39 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-24 15:28:39 +0100 |
commit | 0225570cb171f66a63a6c0120652fe7f6f343e55 (patch) | |
tree | b0f324139a82d2e978603117ecd681b7ef8e1207 /src/ft_wall_cast.c | |
parent | Back to clang (diff) | |
download | 42-cub3d-0225570cb171f66a63a6c0120652fe7f6f343e55.tar.gz 42-cub3d-0225570cb171f66a63a6c0120652fe7f6f343e55.tar.bz2 42-cub3d-0225570cb171f66a63a6c0120652fe7f6f343e55.tar.xz 42-cub3d-0225570cb171f66a63a6c0120652fe7f6f343e55.tar.zst 42-cub3d-0225570cb171f66a63a6c0120652fe7f6f343e55.zip |
less threads
Diffstat (limited to 'src/ft_wall_cast.c')
-rw-r--r-- | src/ft_wall_cast.c | 78 |
1 files changed, 1 insertions, 77 deletions
diff --git a/src/ft_wall_cast.c b/src/ft_wall_cast.c index 0a1a8ef..b8d4e3c 100644 --- a/src/ft_wall_cast.c +++ b/src/ft_wall_cast.c @@ -103,74 +103,6 @@ static void return (0x0); } -/* static void */ -/* *ft_wall_five(void *vargp) */ -/* { */ -/* t_cub *cl; */ -/* uint16_t i; */ - -/* cl = (t_cub *)vargp; */ -/* i = 4 * (cl->wlist.x_size / 8); */ -/* while (i < 5 * (cl->wlist.x_size / 8)) */ -/* { */ -/* ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_bz[i]); */ -/* i++; */ -/* } */ -/* pthread_exit(0x0); */ -/* return (0x0); */ -/* } */ - -/* static void */ -/* *ft_wall_six(void *vargp) */ -/* { */ -/* t_cub *cl; */ -/* uint16_t i; */ - -/* cl = (t_cub *)vargp; */ -/* i = 5 * (cl->wlist.x_size / 8); */ -/* while (i < 6 * (cl->wlist.x_size / 8)) */ -/* { */ -/* ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_bz[i]); */ -/* i++; */ -/* } */ -/* pthread_exit(0x0); */ -/* return (0x0); */ -/* } */ - -/* static void */ -/* *ft_wall_seven(void *vargp) */ -/* { */ -/* t_cub *cl; */ -/* uint16_t i; */ - -/* cl = (t_cub *)vargp; */ -/* i = 6 * (cl->wlist.x_size / 8); */ -/* while (i < 7 * (cl->wlist.x_size / 8)) */ -/* { */ -/* ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_bz[i]); */ -/* i++; */ -/* } */ -/* pthread_exit(0x0); */ -/* return (0x0); */ -/* } */ - -/* static void */ -/* *ft_wall_eight(void *vargp) */ -/* { */ -/* t_cub *cl; */ -/* uint16_t i; */ - -/* cl = (t_cub *)vargp; */ -/* i = 7 * (cl->wlist.x_size / 8); */ -/* while (i < cl->wlist.x_size) */ -/* { */ -/* ft_draw_verline(cl, i, cl->rlist.wall_t_tab[i], cl->rlist.wall_bz[i]); */ -/* i++; */ -/* } */ -/* pthread_exit(0x0); */ -/* return (0x0); */ -/* } */ - void *ft_wall_cast(void *vargp) { @@ -182,18 +114,10 @@ void pthread_create(&tid[1], 0x0, ft_wall_two, (void*)cl); pthread_create(&tid[2], 0x0, ft_wall_three, (void*)cl); pthread_create(&tid[3], 0x0, ft_wall_four, (void*)cl); - /* pthread_create(&tid[4], 0x0, ft_wall_five, (void*)cl); */ - /* pthread_create(&tid[5], 0x0, ft_wall_six, (void*)cl); */ - /* pthread_create(&tid[6], 0x0, ft_wall_seven, (void*)cl); */ - /* pthread_create(&tid[7], 0x0, ft_wall_eight, (void*)cl); */ pthread_join(tid[0], 0x0); pthread_join(tid[1], 0x0); pthread_join(tid[2], 0x0); pthread_join(tid[3], 0x0); - /* pthread_join(tid[4], 0x0); */ - /* pthread_join(tid[5], 0x0); */ - /* pthread_join(tid[6], 0x0); */ - /* pthread_join(tid[7], 0x0); */ - pthread_exit(0x0); + /* pthread_exit(0x0); */ return (0x0); } |