32 pthread_mutex_lock(&global->end_mutex);
34 pthread_mutex_unlock(&global->end_mutex);
42 pthread_mutex_lock(&global->end_mutex);
43 was_set = global->end;
45 pthread_mutex_unlock(&global->end_mutex);
int check_end(t_global *global)
Check if the simulation has ended.