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
This commit is contained in:
Sean Callanan 2012-04-14 01:05:29 +00:00
parent 7b9f93a186
commit 2a7d20405d
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ error_check_mutex (pthread_mutex_t *m, MutexAction action)
{
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;