diff options
author | Greg Clayton <gclayton@apple.com> | 2010-12-20 20:49:23 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-12-20 20:49:23 +0000 |
commit | af67cecd47690d70be488673a02de533e044a521 (patch) | |
tree | 374a923e4bccf163e4d305f5828862593603d812 /lldb/source/API/SBFunction.cpp | |
parent | 3307d7cbad6001dd2a70984dfc8a0763319ac250 (diff) | |
download | bcm5719-llvm-af67cecd47690d70be488673a02de533e044a521.tar.gz bcm5719-llvm-af67cecd47690d70be488673a02de533e044a521.zip |
The LLDB API (lldb::SB*) is now thread safe!
llvm-svn: 122262
Diffstat (limited to 'lldb/source/API/SBFunction.cpp')
-rw-r--r-- | lldb/source/API/SBFunction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/API/SBFunction.cpp b/lldb/source/API/SBFunction.cpp index 54081b55ac3..853a6ffd4f2 100644 --- a/lldb/source/API/SBFunction.cpp +++ b/lldb/source/API/SBFunction.cpp @@ -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(); } |