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

Sean Callanan scallanan at apple.com
Fri Apr 13 18:05:29 PDT 2012


Author: spyffe
Date: Fri Apr 13 20:05:29 2012
New Revision: 154727

URL: http://llvm.org/viewvc/llvm-project?rev=154727&view=rev
Log:
Made sure that the collections of mutexes used in
checking for LLDB mutex validity are static so
that entries put in there actually persist between
calls to error_check_mutex.

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=154727&r1=154726&r2=154727&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Mutex.cpp (original)
+++ lldb/trunk/source/Host/common/Mutex.cpp Fri Apr 13 20:05:29 2012
@@ -44,8 +44,8 @@
 {
     typedef std::set<pthread_mutex_t *> mutex_set;
     static pthread_mutex_t g_mutex_set_mutex = PTHREAD_MUTEX_INITIALIZER;
-    mutex_set g_initialized_mutex_set;
-    mutex_set g_destroyed_mutex_set;
+    static mutex_set g_initialized_mutex_set;
+    static mutex_set g_destroyed_mutex_set;
 
     bool success = true;
     int err;





More information about the lldb-commits mailing list