diff options
Diffstat (limited to 'source/API/SBSymbol.cpp')
-rw-r--r-- | source/API/SBSymbol.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/API/SBSymbol.cpp b/source/API/SBSymbol.cpp index 22d1e546b5ee..0dbed1238b8c 100644 --- a/source/API/SBSymbol.cpp +++ b/source/API/SBSymbol.cpp @@ -141,12 +141,13 @@ SBSymbol::GetInstructions (SBTarget target, const char *flavor_string) SBInstructionList sb_instructions; if (m_opaque_ptr) { - Mutex::Locker api_locker; ExecutionContext exe_ctx; TargetSP target_sp (target.GetSP()); + std::unique_lock<std::recursive_mutex> lock; if (target_sp) { - api_locker.Lock (target_sp->GetAPIMutex()); + lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); + target_sp->CalculateExecutionContext (exe_ctx); } if (m_opaque_ptr->ValueIsAddress()) |