Fixup of LLAtomic and LLThreadSafeRefCount

This commit is contained in:
Aleric Inglewood
2012-03-14 01:57:44 +01:00
parent 8f6dbfc399
commit 058720824d
7 changed files with 73 additions and 79 deletions

View File

@@ -178,7 +178,7 @@ void LLThread::shutdown()
}
mAPRThreadp = NULL;
}
sCount--;
--sCount;
delete mRunCondition;
mRunCondition = 0;
}
@@ -444,28 +444,6 @@ void LLMutexBase::unlock()
apr_thread_mutex_unlock(mAPRMutexp);
}
//----------------------------------------------------------------------------
//static
LLMutex* LLThreadSafeRefCount::sMutex = 0;
//static
void LLThreadSafeRefCount::initThreadSafeRefCount()
{
if (!sMutex)
{
sMutex = new LLMutex;
}
}
//static
void LLThreadSafeRefCount::cleanupThreadSafeRefCount()
{
delete sMutex;
sMutex = NULL;
}
//----------------------------------------------------------------------------
LLThreadSafeRefCount::LLThreadSafeRefCount() :