diff options
| author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2019-09-25 15:25:52 +0000 |
|---|---|---|
| committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2019-09-25 15:25:52 +0000 |
| commit | de44f434e828708daeb7a98cf19f57ef03077c05 (patch) | |
| tree | 761a24dda0789925ca23622e3bf7dd7e8c357804 | |
| parent | 831a7e7068f78be7108672ca6dc66721000fdf61 (diff) | |
| download | bcm5719-llvm-de44f434e828708daeb7a98cf19f57ef03077c05.tar.gz bcm5719-llvm-de44f434e828708daeb7a98cf19f57ef03077c05.zip | |
fixed test: eliminated race condition which might cause deadlock
llvm-svn: 372887
| -rw-r--r-- | openmp/runtime/test/tasking/omp_fill_taskqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/test/tasking/omp_fill_taskqueue.c b/openmp/runtime/test/tasking/omp_fill_taskqueue.c index e95f97a4480..17e1de380bc 100644 --- a/openmp/runtime/test/tasking/omp_fill_taskqueue.c +++ b/openmp/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 |

