[tsan] add coarse-grained lock around the DeadlockDetector. We can do better than that, but that's a start.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201861 91177308-0d34-0410-b5e6-96231b3b80d8
Add Matt Thomas and myself.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201908 91177308-0d34-0410-b5e6-96231b3b80d8
Introduce CRT_HAS_128BIT, currently for all __LP64__ platforms.
Use it to enable the various functions for TI mode.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201909 91177308-0d34-0410-b5e6-96231b3b80d8
Replace __FUNCTION__ with __func__, the latter being standard C99/C++11.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201910 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "Replace __FUNCTION__ with __func__, the latter being standard C99/C++11."

This reverts commit r201910.

While __func__ may be standard in C++11, it was only recently added to
MSVC in 2013 CTP, and LLVM supports MSVC 2012.  __FUNCTION__ may not be
standard, but it's *very* portable.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201916 91177308-0d34-0410-b5e6-96231b3b80d8