Added a thread-safe and robust wrapper for APR pools.
See http://redmine.imprudenceviewer.org/issues/590 and https://jira.secondlife.com/browse/SNOW-596
This commit is contained in:
@@ -184,8 +184,8 @@ void LLWatchdog::init(killer_event_callback func)
|
||||
mKillerCallback = func;
|
||||
if(!mSuspectsAccessMutex && !mTimer)
|
||||
{
|
||||
mSuspectsAccessMutex = new LLMutex(NULL);
|
||||
mTimer = new LLWatchdogTimerThread();
|
||||
mSuspectsAccessMutex = new LLMutex;
|
||||
mTimer = new LLWatchdogTimerThread;
|
||||
mTimer->setSleepTime(WATCHDOG_SLEEP_TIME_USEC / 1000);
|
||||
mLastClockCount = LLTimer::getTotalTime();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user