From 37a0a24a5fdc05e18770661b4ee13a91893dee1a Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Wed, 11 Apr 2012 00:24:49 +0000 Subject: No functionality changes, mostly cleanup. Cleaned up the Mutex::Locker and the ReadWriteLock classes a bit. Also cleaned up the GDBRemoteCommunication class to not have so many packet functions. Used the "NoLock" versions of send/receive packet functions when possible for a bit of performance. llvm-svn: 154458 --- lldb/source/API/SBInstruction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/API/SBInstruction.cpp') diff --git a/lldb/source/API/SBInstruction.cpp b/lldb/source/API/SBInstruction.cpp index f384b5b97b4..c5561fd5c90 100644 --- a/lldb/source/API/SBInstruction.cpp +++ b/lldb/source/API/SBInstruction.cpp @@ -78,7 +78,7 @@ SBInstruction::GetMnemonic(SBTarget target) TargetSP target_sp (target.GetSP()); if (target_sp) { - api_locker.Reset (target_sp->GetAPIMutex().GetMutex()); + api_locker.Lock (target_sp->GetAPIMutex().GetMutex()); target_sp->CalculateExecutionContext (exe_ctx); exe_ctx.SetProcessSP(target_sp->GetProcessSP()); } @@ -97,7 +97,7 @@ SBInstruction::GetOperands(SBTarget target) TargetSP target_sp (target.GetSP()); if (target_sp) { - api_locker.Reset (target_sp->GetAPIMutex().GetMutex()); + api_locker.Lock (target_sp->GetAPIMutex().GetMutex()); target_sp->CalculateExecutionContext (exe_ctx); exe_ctx.SetProcessSP(target_sp->GetProcessSP()); } @@ -116,7 +116,7 @@ SBInstruction::GetComment(SBTarget target) TargetSP target_sp (target.GetSP()); if (target_sp) { - api_locker.Reset (target_sp->GetAPIMutex().GetMutex()); + api_locker.Lock (target_sp->GetAPIMutex().GetMutex()); target_sp->CalculateExecutionContext (exe_ctx); exe_ctx.SetProcessSP(target_sp->GetProcessSP()); } -- cgit v1.2.3