summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/test/ompt/ompt-signal.h
diff options
context:
space:
mode:
authorJoachim Protze <protze@itc.rwth-aachen.de>2017-11-03 17:09:00 +0000
committerJoachim Protze <protze@itc.rwth-aachen.de>2017-11-03 17:09:00 +0000
commit924cff0a3988975996bd5808d3b64e320ee73c84 (patch)
tree5edc1962bf09dd928fb534aa288d7c7b0c525c96 /openmp/runtime/test/ompt/ompt-signal.h
parent741572593f56d054dcd01118960ace51b6f27b71 (diff)
downloadbcm5719-llvm-924cff0a3988975996bd5808d3b64e320ee73c84.tar.gz
bcm5719-llvm-924cff0a3988975996bd5808d3b64e320ee73c84.zip
Updating implementation of OMPT as specified in OpenMP 5.0 Preview 2 (TR6)
The TR6 document is expected to be publically released around November 15. This patch does not implement OMPT for libomptarget. Patch by Simon Convent and Joachim Protze Differential Revision: https://reviews.llvm.org/D39182 llvm-svn: 317339
Diffstat (limited to 'openmp/runtime/test/ompt/ompt-signal.h')
-rw-r--r--openmp/runtime/test/ompt/ompt-signal.h11
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);
OpenPOWER on IntegriCloud