Add llvm_start_multithreaded(), which starts up the LLVM internals in thread-safe...
authorOwen Anderson <resistor@mac.com>
Wed, 20 May 2009 00:39:20 +0000 (00:39 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 20 May 2009 00:39:20 +0000 (00:39 +0000)
commitb4d97b78dfd0d14a788fa3cb876f67a9e666b99b
treee42e951916b19287fa971f1dc6b771fcb4104685
parent513fae2db51c7d22ec1253e89939d27732b21a5e
Add llvm_start_multithreaded(), which starts up the LLVM internals in thread-safe mode.  Provide double-check locking
initialization of ManagedStatic's when running in thread-safe mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72151 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ManagedStatic.h
lib/Support/ManagedStatic.cpp