llvm-6502/lib/Support/Windows
Chris Bieneman 8744520b53 Removing the static initializer in ManagedStatic.cpp by using llvm_call_once to initialize the ManagedStatic mutex.
Summary:
This patch adds an llvm_call_once which is a wrapper around std::call_once on platforms where it is available and devoid of bugs. The patch also migrates the ManagedStatic mutex to be allocated using llvm_call_once.

These changes are philosophically equivalent to the changes added in r219638, which were reverted due to a hang on Win32 which was the result of a bug in the Windows implementation of std::call_once.

Reviewers: aaron.ballman, chapuni, chandlerc, rnk

Reviewed By: rnk

Subscribers: majnemer, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220932 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-30 22:07:09 +00:00
..
DynamicLibrary.inc Windows/DynamicLibrary.inc: Remove 'extern "C"' in ELM_Callback. 2014-09-23 01:09:46 +00:00
explicit_symbols.inc
Host.inc Windows/Host.inc: Reformat the header to fit 80-col. 2014-09-24 04:45:14 +00:00
Memory.inc
Mutex.inc
Path.inc Misc cleanups to the FileSytem api. 2014-09-11 20:30:02 +00:00
Process.inc Support: Don't call close again if we get EINTR 2014-10-07 05:48:40 +00:00
Program.inc clang-format of ChangeStdinToBinary & ChangeStdoutToBinary. 2014-09-26 22:27:11 +00:00
RWMutex.inc PR21202: Memory leak in Windows RWMutexImpl when using SRWLOCK 2014-10-21 00:34:39 +00:00
Signals.inc
Threading.inc Removing the static initializer in ManagedStatic.cpp by using llvm_call_once to initialize the ManagedStatic mutex. 2014-10-30 22:07:09 +00:00
ThreadLocal.inc Fix a -Wunused-local-typedefs warning 2014-07-14 22:46:45 +00:00
TimeValue.inc
Watchdog.inc
WindowsSupport.h Add writeFileWithSystemEncoding to LibLLVMSuppor. 2014-09-03 20:02:00 +00:00