[Lldb-commits] [lldb] r155077 - /lldb/trunk/source/API/SBFrame.cpp

Jim Ingham jingham at apple.com
Wed Apr 18 17:14:53 PDT 2012


Author: jingham
Date: Wed Apr 18 19:14:53 2012
New Revision: 155077

URL: http://llvm.org/viewvc/llvm-project?rev=155077&view=rev
Log:
We take the API mutex first and the stop mutex second in general, so do it here as well.

Modified:
    lldb/trunk/source/API/SBFrame.cpp

Modified: lldb/trunk/source/API/SBFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBFrame.cpp?rev=155077&r1=155076&r2=155077&view=diff
==============================================================================
--- lldb/trunk/source/API/SBFrame.cpp (original)
+++ lldb/trunk/source/API/SBFrame.cpp Wed Apr 18 19:14:53 2012
@@ -1044,13 +1044,11 @@
 
     if (frame && target)
     {
+        Mutex::Locker api_locker (target->GetAPIMutex());
+            
         Process::StopLocker stop_locker;
         if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock()))
         {
-
-            Mutex::Locker api_locker (target->GetAPIMutex());
-            
-            
             StreamString frame_description;
             frame->DumpUsingSettingsFormat (&frame_description);
 





More information about the lldb-commits mailing list