mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 07:01:03 +08:00
remove use of Mutex in favour of std::{,recursive_}mutex
This is a pretty straightforward first pass over removing a number of uses of Mutex in favor of std::mutex or std::recursive_mutex. The problem is that there are interfaces which take Mutex::Locker & to lock internal locks. This patch cleans up most of the easy cases. The only non-trivial change is in CommandObjectTarget.cpp where a Mutex::Locker was split into two. llvm-svn: 269877
This commit is contained in:
@@ -247,7 +247,7 @@ IRExecutionUnit::GetRunnableInfo(Error &error,
|
||||
{
|
||||
lldb::ProcessSP process_sp(GetProcessWP().lock());
|
||||
|
||||
static Mutex s_runnable_info_mutex(Mutex::Type::eMutexTypeRecursive);
|
||||
static std::recursive_mutex s_runnable_info_mutex;
|
||||
|
||||
func_addr = LLDB_INVALID_ADDRESS;
|
||||
func_end = LLDB_INVALID_ADDRESS;
|
||||
@@ -267,7 +267,7 @@ IRExecutionUnit::GetRunnableInfo(Error &error,
|
||||
return;
|
||||
};
|
||||
|
||||
Mutex::Locker runnable_info_mutex_locker(s_runnable_info_mutex);
|
||||
std::lock_guard<std::recursive_mutex> guard(s_runnable_info_mutex);
|
||||
|
||||
m_did_jit = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user