[openmp] Fixed hang if detached task was serialized.
authorAndreyChurbanov <andrey.churbanov@intel.com>
Mon, 18 May 2020 12:32:13 +0000 (15:32 +0300)
committerAndreyChurbanov <andrey.churbanov@intel.com>
Mon, 18 May 2020 12:32:13 +0000 (15:32 +0300)
commit57d8b8d6f0b91b380ca3b270b4439c338ed67f53
treeb6effdd572119560b7bc392f6eb89f63f1cc9dcf
parentab1fb38d8fe8055ddfb2e5a7ae1b1824b3f3cab7
[openmp] Fixed hang if detached task was serialized.

The patch fixes https://bugs.llvm.org/show_bug.cgi?id=45904.

Differential Revision: https://reviews.llvm.org/D79944
openmp/runtime/src/kmp_tasking.cpp
openmp/runtime/test/tasking/omp_detach_taskwait.c [new file with mode: 0644]