aboutsummaryrefslogtreecommitdiff
path: root/runtime/test/tasking/omp_fill_taskqueue.c
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2019-09-25 15:25:52 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2019-09-25 15:25:52 +0000
commit2cb5d49f712a6c4c502ab4f155acf72d86bc604f (patch)
tree723dfccd79fb4ba9ded0e23a495b6b254803b478 /runtime/test/tasking/omp_fill_taskqueue.c
parent66ddc2110ae411ee6187b7f674e3698e8cc11872 (diff)
fixed test: eliminated race condition which might cause deadlock
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@372887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/test/tasking/omp_fill_taskqueue.c')
-rw-r--r--runtime/test/tasking/omp_fill_taskqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/test/tasking/omp_fill_taskqueue.c b/runtime/test/tasking/omp_fill_taskqueue.c
index e95f97a..17e1de3 100644
--- a/runtime/test/tasking/omp_fill_taskqueue.c
+++ b/runtime/test/tasking/omp_fill_taskqueue.c
@@ -29,7 +29,6 @@ int main()
{
int i;
int block = 1;
- int tid;
int throttling = strcmp(getenv("KMP_ENABLE_TASK_THROTTLING"), "1") == 0;
int enqueued = 0;
int failed = -1;
@@ -41,6 +40,7 @@ int main()
enqueued++;
#pragma omp task
{
+ int tid;
tid = omp_get_thread_num();
if (tid == 0) {
// As soon as the master thread starts executing task we should unlock