int num_in_barrier =0; int barrier_size = 0; void barrier_init(int* in_barrier, int size) { barrier_size = size; for (int i=0; i