mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
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:
1 parent
ad66de155b
commit
37a0a24a5f
22 files changed
+151
-145
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user