diff options
Diffstat (limited to 'openmp/runtime/test/ompt/ompt-signal.h')
| -rw-r--r-- | openmp/runtime/test/ompt/ompt-signal.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/openmp/runtime/test/ompt/ompt-signal.h b/openmp/runtime/test/ompt/ompt-signal.h index b5c28cf5dee..76e49ba4517 100644 --- a/openmp/runtime/test/ompt/ompt-signal.h +++ b/openmp/runtime/test/ompt/ompt-signal.h @@ -1,13 +1,6 @@ -#if defined(WIN32) || defined(_WIN32) -#include <windows.h> -#define delay() Sleep(1); -#else -#include <unistd.h> -#define delay(t) usleep(t); -#endif - // These functions are used to provide a signal-wait mechanism to enforce expected scheduling for the test cases. // Conditional variable (s) needs to be shared! Initialize to 0 +#include <unistd.h> #define OMPT_SIGNAL(s) ompt_signal(&s) //inline @@ -24,7 +17,7 @@ void ompt_wait(int *s, int v) { int wait=0; do{ - delay(10); + usleep(10); #pragma omp atomic read wait = (*s); }while(wait<v); |

