1 // These functions are used to provide a signal-wait mechanism to enforce
2 // expected scheduling for the test cases. Conditional variable (s) needs to be
3 // shared! Initialize to 0
6 #define OMPT_SIGNAL(s) ompt_signal(&s)
8 void ompt_signal(int *s
) {
13 #define OMPT_WAIT(s, v) ompt_wait(&s, v)
16 void ompt_wait(int *s
, int v
) {
20 #pragma omp atomic read