From 2a7d20405de6a9c9d487359a4f8777a723cf2855 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Sat, 14 Apr 2012 01:05:29 +0000 Subject: [PATCH] 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. llvm-svn: 154727 --- lldb/source/Host/common/Mutex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Host/common/Mutex.cpp b/lldb/source/Host/common/Mutex.cpp index 79778b60b86b..eab3c10f4c6b 100644 --- a/lldb/source/Host/common/Mutex.cpp +++ b/lldb/source/Host/common/Mutex.cpp @@ -44,8 +44,8 @@ error_check_mutex (pthread_mutex_t *m, MutexAction action) { typedef std::set 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;