20#include "../utils/utils.h"
35 >= (
unsigned long) thread->global->opt.tt_die)
37 if (!set_end(thread->global))
38 thread->err =
status(thread,
"died", 1);
int status(t_thread *thread, char *str, int ignore_end)
Thread safe philosopher state logging.
int stop(t_thread *thread)
Determine if this thread's philo should die, or if the thread has reported an error.
unsigned long timestamp(void)
Millisecond timestamp since this function was first called.