diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 01:05:20 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 01:05:20 +0100 |
commit | 6b5e8937d190639ce72c7e5dbee888f97f5f015e (patch) | |
tree | 4e3e28dddf4e40424c4c66757571371f7a86b25e | |
parent | trying to thread (diff) | |
download | 42-cub3d-6b5e8937d190639ce72c7e5dbee888f97f5f015e.tar.gz 42-cub3d-6b5e8937d190639ce72c7e5dbee888f97f5f015e.tar.bz2 42-cub3d-6b5e8937d190639ce72c7e5dbee888f97f5f015e.tar.xz 42-cub3d-6b5e8937d190639ce72c7e5dbee888f97f5f015e.tar.zst 42-cub3d-6b5e8937d190639ce72c7e5dbee888f97f5f015e.zip |
ok
-rw-r--r-- | inc/cub3d.h | 2 | ||||
-rw-r--r-- | src/ft_treat_args.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 751d6b0..1f8abd4 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -114,7 +114,7 @@ uint8_t ft_use_args(int argc, const char *argv[], t_cub *clist); */ void ft_set_minimap_scale(t_cub *clist); -void *ft_music(void *vargp); +void *ft_music_thread(void *vargp); void ft_detect(t_cub *cl); void ft_castray(t_cub *cl); void ft_save_to_bmp(void); diff --git a/src/ft_treat_args.c b/src/ft_treat_args.c index cc1391a..3a7f217 100644 --- a/src/ft_treat_args.c +++ b/src/ft_treat_args.c @@ -41,7 +41,7 @@ uint8_t ft_draw_scene(clist); if (clist->mlist->ismusic) { - pthread_create(&tid, NULL, ft_music, clist); + pthread_create(&tid, NULL, ft_music_thread, clist); pthread_join(tid, NULL); } ft_hooks_and_loops(clist->wlist, clist); |