mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
The LLDB API (lldb::SB*) is now thread safe!
llvm-svn: 122262
This commit is contained in:
1 parent
3307d7cbad
commit
af67cecd47
23 files changed
+537
-497
No files matched your search
@@ -125,9 +125,11 @@ SBFunction::GetInstructions (SBTarget target)
|
||||
SBInstructionList sb_instructions;
|
||||
if (m_opaque_ptr)
|
||||
{
|
||||
Mutex::Locker api_locker;
|
||||
ExecutionContext exe_ctx;
|
||||
if (target.IsValid())
|
||||
{
|
||||
api_locker.Reset (target->GetAPIMutex().GetMutex());
|
||||
target->CalculateExecutionContext (exe_ctx);
|
||||
exe_ctx.process = target->GetProcessSP().get();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user