aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_treat_args.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-06 18:10:14 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-06 18:10:14 +0100
commit16092c007e8767b32c107d74d3ea3d238f5e65ec (patch)
treeb46cb8825ea0f7071ee4b48f37f78f853b13414c /src/ft_treat_args.c
parentNo pthread in Makefile (diff)
download42-cub3d-16092c007e8767b32c107d74d3ea3d238f5e65ec.tar.gz
42-cub3d-16092c007e8767b32c107d74d3ea3d238f5e65ec.tar.bz2
42-cub3d-16092c007e8767b32c107d74d3ea3d238f5e65ec.tar.xz
42-cub3d-16092c007e8767b32c107d74d3ea3d238f5e65ec.tar.zst
42-cub3d-16092c007e8767b32c107d74d3ea3d238f5e65ec.zip
Preparing forks
Diffstat (limited to 'src/ft_treat_args.c')
-rw-r--r--src/ft_treat_args.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_treat_args.c b/src/ft_treat_args.c
index 2571709..b588b46 100644
--- a/src/ft_treat_args.c
+++ b/src/ft_treat_args.c
@@ -14,7 +14,6 @@
#include <cub3d.h>
#include <stddef.h>
#include <stdint.h>
-#include <pthread.h>
#include <unistd.h>
uint8_t
@@ -38,7 +37,8 @@ uint8_t
return (ft_exit(FT_RET_FAILED_MLX, clist));
ft_draw_scene(clist);
if (clist->mlist.ismusic)
- pthread_create(&clist->tid, NULL, ft_music_thread, clist);
+ ft_music_fork(cl);
+ /* create music fork() here */
ft_hooks_and_loops(&clist->wlist, clist);
}
else if (argc == 3 && !ft_strncmp("--save", argv[2], 7))