The LLDB API (lldb::SB*) is now thread safe!
llvm-svn: 122262
This commit is contained in:
@@ -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