[Openmp-commits] [PATCH] D11990: Lock-free start of serialized parallel regions
hfinkel@anl.gov via Openmp-commits
openmp-commits at lists.llvm.org
Sun Aug 16 02:59:48 PDT 2015
hfinkel added inline comments.
================
Comment at: runtime/src/kmp_runtime.c:1740
@@ +1739,3 @@
+ if ( nthreads == 1 ) {
+ __kmp_release_bootstrap_lock( &__kmp_forkjoin_lock );
+ }
----------------
Why do we only release the lock when nthreads == 1? Does __kmp_reserve_threads release it otherwise?
(I realize that you've only moved this line from down below, but this seems non-obvious)
Repository:
rL LLVM
http://reviews.llvm.org/D11990
More information about the Openmp-commits
mailing list