[Support] Base SmartMutex on std::recursive_mutex
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 7 Aug 2019 11:59:57 +0000 (11:59 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 7 Aug 2019 11:59:57 +0000 (11:59 +0000)
commitea134f221f2a5c075b7539876a444b4a07362912
treee72fb173590d83507dbee191ed72c5e5ba1f30c2
parente57b60f321024064353b46489cfb25ee01fd55d7
[Support] Base SmartMutex on std::recursive_mutex

- Remove support for non-recursive mutexes. This was unused.
- The std::recursive_mutex is now created/destroyed unconditionally.
  Locking is still only done if threading is enabled.
- Alias SmartScopedLock to std::lock_guard.

This should make no semantic difference on the existing APIs.

llvm-svn: 368158
llvm/include/llvm/Support/Mutex.h
llvm/lib/Support/CMakeLists.txt
llvm/lib/Support/Mutex.cpp [deleted file]
llvm/lib/Support/Unix/Mutex.inc [deleted file]
llvm/lib/Support/Windows/Mutex.inc [deleted file]