llvm-6502/lib
Mark Seaborn 79ac85be0b Fix RWMutex to be thread-safe when pthread_rwlock is not available
lib/Support/RWMutex.cpp contains an implementation of RWMutex that
uses pthread_rwlock, but when pthread_rwlock is not available (such as
under NaCl, when using newlib), it silently falls back to using the
no-op definition in lib/Support/Unix/RWMutex.inc, which is not
thread-safe.

Fix this case to be thread-safe by using a normal mutex.

Differential Revision: http://llvm-reviews.chandlerc.com/D2892

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202570 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-01 04:30:32 +00:00
..
Analysis
AsmParser
Bitcode
CodeGen SpillPlacement: fix a bug in iterate. 2014-02-28 23:05:31 +00:00
DebugInfo
ExecutionEngine
IR Fix >> to be > > for non-c++11. 2014-02-28 21:37:28 +00:00
IRReader
LineEditor
Linker
LTO Add 'remark' diagnostic type in LLVM 2014-02-28 09:08:45 +00:00
MC Remove MCPureStreamer. 2014-02-27 16:17:34 +00:00
Object Now that it is possible, use the mangler in IRObjectFile. 2014-02-28 02:17:23 +00:00
Option
Support Fix RWMutex to be thread-safe when pthread_rwlock is not available 2014-03-01 04:30:32 +00:00
TableGen
Target [Sparc] 80 column rule. No functionality change. 2014-03-01 02:28:34 +00:00
Transforms Reflow isProfitableToMakeFastCC 2014-02-28 22:50:08 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile