Lines Matching refs:synch
10 int synch[NUMBER_OF_THREADS];
30 #pragma omp parallel private(iam,neighbor) shared(work,synch)
33 synch[iam] = 0;
38 * ensures that my work is made visible before synch.
39 * The second flush ensures that synch is made visible.
41 #pragma omp flush(work,synch)
42 synch[iam] = 1;
43 #pragma omp flush(synch)
44 /* Wait for neighbor. The first flush ensures that synch is read
50 while (synch[neighbor] == 0)
52 #pragma omp flush(synch)
54 #pragma omp flush(work,synch)