19 lines
362 B
C
19 lines
362 B
C
#ifndef PHILO_PROTO_H
|
|
# define PHILO_PROTO_H
|
|
|
|
// init.c
|
|
t_philo *init(int ac, char **av, pthread_t **id);
|
|
|
|
// exec.c
|
|
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 stime);
|
|
int is_dead(t_philo *philo);
|
|
void print_message(t_philo *philo, char *msg);
|
|
|
|
#endif
|
|
|