Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 2cb5d49

Browse files
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
1 parent 66ddc21 commit 2cb5d49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/test/tasking/omp_fill_taskqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ int main()
2929
{
3030
int i;
3131
int block = 1;
32-
int tid;
3332
int throttling = strcmp(getenv("KMP_ENABLE_TASK_THROTTLING"), "1") == 0;
3433
int enqueued = 0;
3534
int failed = -1;
@@ -41,6 +40,7 @@ int main()
4140
enqueued++;
4241
#pragma omp task
4342
{
43+
int tid;
4444
tid = omp_get_thread_num();
4545
if (tid == 0) {
4646
// As soon as the master thread starts executing task we should unlock

0 commit comments

Comments
 (0)