1 philo ok, deplacement diff_time dans generic, renomme go_sleep, ferme lock en fin

This commit is contained in:
Hugo LAMY
2022-01-26 14:49:02 +01:00
parent 2f747d0563
commit bf80fde30b
5 changed files with 20 additions and 14 deletions

View File

@@ -5,7 +5,6 @@
t_philo *init(int ac, char **av, pthread_t **id);
// main_thread.c
int diff_time(t_time old, struct timeval new);
int is_dead(t_philo *philo);
void launch_threads(t_philo *philo, pthread_t *id);
@@ -15,6 +14,7 @@ void *philo_exec(void *arg);
// generic.c
void init_time(t_philo *philo);
void update_time(t_philo *philo);
int diff_time(t_time old, struct timeval new);
int print_message(t_philo *philo, char *clr, char *msg);
#endif