Workaround for mac startup hardlock. (STORM-1641)

This commit is contained in:
Shyotl
2011-10-18 09:33:20 -05:00
parent 4446b0fbad
commit 82b0171a86
5 changed files with 11 additions and 6 deletions

View File

@@ -38,7 +38,7 @@
//============================================================================
// MAIN THREAD
LLQueuedThread::LLQueuedThread(const std::string& name, bool threaded) :
LLQueuedThread::LLQueuedThread(const std::string& name, bool threaded, bool should_pause) :
LLThread(name),
mThreaded(threaded),
mIdleThread(TRUE),
@@ -47,6 +47,11 @@ LLQueuedThread::LLQueuedThread(const std::string& name, bool threaded) :
{
if (mThreaded)
{
if(should_pause)
{
pause() ; //call this before start the thread.
}
start();
}
}