commit | ba56714719294ad7aa15a1351c201e642445e2ab | [log] [tgz] |
---|---|---|
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | Thu May 16 17:52:53 2019 +0000 |
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | Thu May 16 17:52:53 2019 +0000 |
tree | f41aa105ca07416199aa3f533efccb1792023ec0 | |
parent | 9a0d0f00e90c4f9e0cbd281ab5578db28fafdfcb [diff] |
Fixed second issue reported in https://bugs.llvm.org/show_bug.cgi?id=41584. Added synchronization for possible concurrent initialization of mutexes by multiple threads. The need of synchronization caused by commit r357927 which added the use of mutexes at threads movement to/from common pool (earlier the mutexes were used only at suspend/resume). Patch by Johnny Peyton. Differential Revision: https://reviews.llvm.org/D61995 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@360919 91177308-0d34-0410-b5e6-96231b3b80d8