aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cub3d_structs.h')
-rw-r--r--inc/cub3d_structs.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 01c9b07..473fe9f 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -57,16 +57,19 @@ typedef struct s_bmp_info
typedef struct s_sfx
{
- char **death;
- char **new_lvl;
+ char *death;
+ char *new_lvl;
char *pain_one;
char *pain_two;
- char **trap;
- pid_t death_pid;
- pid_t new_lvl_pid;
+ char *trap;
+ pthread_t death_tid;
+ pthread_t new_lvl_tid;
pthread_t pain_tid;
- pid_t trap_pid;
+ pthread_t trap_tid;
+ pthread_mutex_t death_mutex;
+ pthread_mutex_t new_lvl_mutex;
pthread_mutex_t pain_mutex;
+ pthread_mutex_t trap_mutex;
} t_sfx;
typedef struct s_bmp_rgb