MCPcopy Create free account
hub / github.com/AdvancedCompiler/AdvancedCompiler / sync_right

Function sync_right

code/Chapter9/9-32.c:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23}
24void sync_right()
25{
26 if(iam<mthreadnum)
27 {
28 while(isync[iam]==1)
29 {
30 #pragma omp flush(isync)
31 }
32 #pragma omp flush(isync,a)
33 isync[iam%(mthreadnum-1)]=1;
34 #pragma omp flush(isync)
35 }
36}
37int main()
38{
39 isync[0]=1;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected