fix print mutex is now destroyed at the end

This commit is contained in:
Camille Chauvet
2023-04-20 12:40:30 +00:00
parent 32d881a7d2
commit 26e9f21238
3 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,7 @@ typedef struct s_data
bool *forks;
pthread_mutex_t stop_mutex;
bool stop;
pthread_mutex_t print_mutex;
} t_data;
typedef struct s_philo