37 pthread_mutex_t printing;
38 pthread_mutex_t *forks;
39 pthread_mutex_t end_mutex;
int check_end(t_global *global)
Check if the simulation has ended.
int philo_sleep(unsigned long ms, t_thread *thread)
Sleep in 200 microsecond intervals until ms millis have elapsed, or stop has returned non-zero.
int stop(t_thread *thread)
Determine if this thread's philo should die, or if the thread has reported an error.
int status(t_thread *thread, char *str, int ignore_end)
Thread safe philosopher state logging.