barrier_wait is added