[Openmp-commits] [PATCH] D79702: [OpenMP] Fix race condition in the completion/freeing of detached tasks
Andrey Churbanov via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue May 12 10:12:00 PDT 2020
AndreyChurbanov added inline comments.
================
Comment at: openmp/runtime/src/kmp_tasking.cpp:900
// event hasn't been fulfilled yet. Try to detach task.
- __kmp_acquire_tas_lock(&taskdata->td_allow_completion_event.lock, gtid);
+ auto competion_lock = &taskdata->td_allow_completion_event.lock;
+ __kmp_acquire_tas_lock(competion_lock, gtid);
----------------
completion_lock looks a better name than competion_lock (typo?).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79702/new/
https://reviews.llvm.org/D79702
More information about the Openmp-commits
mailing list