summaryrefslogtreecommitdiff
path: root/indra/llcommon/llqueuedthread.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-10-11 13:55:20 -0400
committerOz Linden <oz@lindenlab.com>2011-10-11 13:55:20 -0400
commitaabdbeadf53b3a20b4db563a23535af74fd7d4b7 (patch)
treec2cdcbf4758462b11f296c9ab200237aa33e5c71 /indra/llcommon/llqueuedthread.cpp
parentbe251b06eb785a2d301115f9c231eb5f3c906224 (diff)
parent852349218e5cfdd48a1a64c672e9663aab716031 (diff)
pull back beta fix for sh-2434
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();
}
}