[Lldb-commits] [lldb] r154710 - /lldb/trunk/source/Host/common/Mutex.cpp

Jim Ingham jingham at apple.com
Fri Apr 13 16:28:33 PDT 2012


Author: jingham
Date: Fri Apr 13 18:28:33 2012
New Revision: 154710

URL: http://llvm.org/viewvc/llvm-project?rev=154710&view=rev
Log:
In debug mode, assert if we haven't initialized a mutex we thought we'd initialized.

Modified:
    lldb/trunk/source/Host/common/Mutex.cpp

Modified: lldb/trunk/source/Host/common/Mutex.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Mutex.cpp?rev=154710&r1=154709&r2=154710&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Mutex.cpp (original)
+++ lldb/trunk/source/Host/common/Mutex.cpp Fri Apr 13 18:28:33 2012
@@ -74,6 +74,7 @@
         case eMutexActionAssertInitialized:
             // This function will return true if "m" is in the initialized mutex set
             success = g_initialized_mutex_set.find(m) != g_initialized_mutex_set.end();
+            assert (success);
             break;
     }
     // Manually call unlock so we don't to any of this error checking





More information about the lldb-commits mailing list