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
This commit is contained in:
Greg Clayton committed 2012-04-11 00:24:49 +00:00
1 parent ad66de155b
commit 37a0a24a5f
22 files changed
+151 -145

No files matched your search

+1 -1
View File
@@ -130,7 +130,7 @@ SBFunction::GetInstructions (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());
}