Prevent monitor thread creation when KMP_BLOCKTIME="infinite"
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 18 Dec 2015 23:20:36 +0000 (23:20 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 18 Dec 2015 23:20:36 +0000 (23:20 +0000)
commit4fee5f64160d2487c9cee1e3e35e146042afe8de
tree000c5a093868485cfdfa82920cc52c5160e1f417
parent6cb33c60bd629ccdf3206898b4d9271bb8ffa8d2
Prevent monitor thread creation when KMP_BLOCKTIME="infinite"

When users sets envirable KMP_BLOCKTIME to "infinite" (the time one busy-waits
at barrieres, etc.), the monitor thread is not useful and can be ignored. This
change prevents the creation of the monitor thread when the users sets
KMP_BLOCKTIME to "infinite".

Differential Revision: http://reviews.llvm.org/D15628

llvm-svn: 256061
openmp/runtime/src/z_Linux_util.c
openmp/runtime/src/z_Windows_NT_util.c