21#include "../utils/utils.h" 
   34    return (printf(
"%lu %d %s\n", ts, thread->i + 1, str)
 
   35        != (ullen(ts) + intlen(thread->i + 1) + ft_strlen(str) + 3));
 
 
   50    pthread_mutex_lock(&thread->global->printing);
 
   51    if (ignore_end || !
check_end(thread->global))
 
   57    pthread_mutex_unlock(&thread->global->printing);
 
 
int check_end(t_global *global)
Check if the simulation has ended.
 
int status(t_thread *thread, char *str, int ignore_end)
Thread safe philosopher state logging.
 
static int status_print_verify(t_thread *thread, unsigned long ts, char *str)
Print status and verify correct length.
 
unsigned long timestamp(void)
Millisecond timestamp since this function was first called.