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