mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 17:07:36 +08:00
second pass over removal of Mutex and Condition
llvm-svn: 270024
This commit is contained in:
@@ -411,9 +411,9 @@ SBDebugger::HandleCommand (const char *command)
|
||||
if (m_opaque_sp)
|
||||
{
|
||||
TargetSP target_sp (m_opaque_sp->GetSelectedTarget());
|
||||
Mutex::Locker api_locker;
|
||||
std::unique_lock<std::recursive_mutex> lock;
|
||||
if (target_sp)
|
||||
api_locker.Lock(target_sp->GetAPIMutex());
|
||||
lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex());
|
||||
|
||||
SBCommandInterpreter sb_interpreter(GetCommandInterpreter ());
|
||||
SBCommandReturnObject result;
|
||||
@@ -474,8 +474,8 @@ SBDebugger::HandleProcessEvent (const SBProcess &process, const SBEvent &event,
|
||||
char stdio_buffer[1024];
|
||||
size_t len;
|
||||
|
||||
Mutex::Locker api_locker (target_sp->GetAPIMutex());
|
||||
|
||||
std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex());
|
||||
|
||||
if (event_type & (Process::eBroadcastBitSTDOUT | Process::eBroadcastBitStateChanged))
|
||||
{
|
||||
// Drain stdout when we stop just in case we have any bytes
|
||||
|
||||
Reference in New Issue
Block a user