]> granicus.if.org Git - llvm/commit
[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)
commit02e4b162370e8b748f3fe1e65b3fc97fce3ebda5
treebf06a432e849118e5ed1a6e15e0cc2c32e188d22
parent4c587405416ab2ec527d651cb700a1b6a0d23ee3
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368158 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Mutex.h
lib/Support/CMakeLists.txt
lib/Support/Mutex.cpp [deleted file]
lib/Support/Unix/Mutex.inc [deleted file]
lib/Support/Windows/Mutex.inc [deleted file]