mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Replace non-recursive sys::Mutex users with std::mutex
Also remove a use of sys::MutexImpl, that's just evil. No functionality change intended. llvm-svn: 368157
This commit is contained in:
parent
3f5a065dda
commit
8e1a600330
@ -196,9 +196,9 @@ struct LockMutex : ValueMapConfig<KeyT, MutexT> {
|
||||
// FIXME: These tests started failing on Windows.
|
||||
#if LLVM_ENABLE_THREADS && !defined(_WIN32)
|
||||
TYPED_TEST(ValueMapTest, LocksMutex) {
|
||||
sys::Mutex M(false); // Not recursive.
|
||||
std::mutex M;
|
||||
bool CalledRAUW = false, CalledDeleted = false;
|
||||
typedef LockMutex<TypeParam*, sys::Mutex> ConfigType;
|
||||
typedef LockMutex<TypeParam*, std::mutex> ConfigType;
|
||||
typename ConfigType::ExtraData Data = {&M, &CalledRAUW, &CalledDeleted};
|
||||
ValueMap<TypeParam*, int, ConfigType> VM(Data);
|
||||
VM[this->BitcastV.get()] = 7;
|
||||
|
Loading…
x
Reference in New Issue
Block a user