diff options
Diffstat (limited to 'source/API/SBFunction.cpp')
-rw-r--r-- | source/API/SBFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/API/SBFunction.cpp b/source/API/SBFunction.cpp index 2d03d53fd9f7e..b5983d763be11 100644 --- a/source/API/SBFunction.cpp +++ b/source/API/SBFunction.cpp @@ -156,12 +156,12 @@ SBFunction::GetInstructions (SBTarget target, const char *flavor) 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); exe_ctx.SetProcessSP(target_sp->GetProcessSP()); } |