debut implementation death tout est casse
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user