void wait_group_events(int num_events, event_t *event_list);