diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-05-19 05:13:57 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-05-19 05:13:57 +0000 |
| commit | bb19a13c0b3fe1ecdc1e46bbf2b06ffc1e25e04e (patch) | |
| tree | a4383c7cf16b2a6b8e8aa1ff61435ceec0c6a7de /lldb/source/API/SBFunction.cpp | |
| parent | fe12d0e3e551a29b880ecfc7673810ce18567765 (diff) | |
second pass over removal of Mutex and Condition
llvm-svn: 270024
Diffstat (limited to 'lldb/source/API/SBFunction.cpp')
| -rw-r--r-- | lldb/source/API/SBFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/API/SBFunction.cpp b/lldb/source/API/SBFunction.cpp index 2d03d53fd9f7..b5983d763be1 100644 --- a/lldb/source/API/SBFunction.cpp +++ b/lldb/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()); } |
