debut implementation death tout est casse

This commit is contained in:
Hugo LAMY
2022-01-21 18:32:37 +01:00
parent be439700e9
commit 6a4aad9503
12 changed files with 107 additions and 214 deletions

View File

@@ -7,5 +7,12 @@ t_philo *init(int ac, char **av, pthread_t **id);
// exec.c
void *philo_exec(void *arg);
// time.c
void init_time(t_philo *philo);
void update_time(t_philo *philo);
// message.c
void print_message(t_philo *philo, char *msg);
#endif

View File

@@ -22,7 +22,7 @@ typedef struct s_philo
long int t_start_u;
long int t_last_meal_s;
long int t_last_meal_u;
struct s_philo *prev;
int *death;
struct s_philo *next;
} t_philo;