summaryrefslogtreecommitdiff
path: root/indra/llcommon/llqueuedthread.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-10-05 15:21:10 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-10-05 15:21:10 -0600
commit5ef05e151d24e15a175d4f78ff17b6abdd36bbc4 (patch)
tree5f213a3b61df3b4d9b191db2f1f93babf6453747 /indra/llcommon/llqueuedthread.cpp
parent77eb3aae04b276369aea70d2931f6aed7352d823 (diff)
fix for SH-2434: Mac viewer sometimes freezes at start up and must be force quit.
Diffstat (limited to 'indra/llcommon/llqueuedthread.cpp')
-rw-r--r--indra/llcommon/llqueuedthread.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llcommon/llqueuedthread.cpp b/indra/llcommon/llqueuedthread.cpp
index efd9c4b68f..5dee7a3541 100644
--- a/indra/llcommon/llqueuedthread.cpp
+++ b/indra/llcommon/llqueuedthread.cpp
@@ -32,7 +32,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),
@@ -41,6 +41,11 @@ LLQueuedThread::LLQueuedThread(const std::string& name, bool threaded) :
{
if (mThreaded)
{
+ if(should_pause)
+ {
+ pause() ; //call this before start the thread.
+ }
+
start();
}
}