1 #if defined(WIN32) || defined(_WIN32)
3 #define delay() Sleep(1);
6 #define delay(t) usleep(t);
9 // These functions are used to provide a signal-wait mechanism to enforce expected scheduling for the test cases.
10 // Conditional variable (s) needs to be shared! Initialize to 0
12 #define OMPT_SIGNAL(s) ompt_signal(&s)
14 void ompt_signal(int* s
)
20 #define OMPT_WAIT(s,v) ompt_wait(&s,v)
23 void ompt_wait(int *s
, int v
)
28 #pragma omp atomic read