[Openmp-commits] [PATCH] D28377: Fix a race in shutdown when tasking is used
Terry Wilmarth via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jan 31 16:06:35 PST 2017
tlwilmar updated this revision to Diff 86519.
tlwilmar added a comment.
Reap state does not need to be reset after each barrier. If thread attempts to execute tasks, it will be set to NOT SAFE to reap. It only matters in the spin at the fork barrier after shutdown is triggered. Master thread now waits for ALL threads to reach SAFE state before proceeding to clean anything up.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5335 bytes
Desc: not available
More information about the Openmp-commits