diff options
author | Logan Dethrow <log@lindenlab.com> | 2011-10-12 14:40:49 -0400 |
---|---|---|
committer | Logan Dethrow <log@lindenlab.com> | 2011-10-12 14:40:49 -0400 |
commit | ad3ffeed867145693500daf903c581b91b1dfcb5 (patch) | |
tree | 43815c43b04b3afe29b54993193b2863949984c3 /indra/llcommon/llqueuedthread.cpp | |
parent | 6fae13579eccf64959451a3aab1b77fa2ac02155 (diff) | |
parent | aabdbeadf53b3a20b4db563a23535af74fd7d4b7 (diff) |
Merge
Diffstat (limited to 'indra/llcommon/llqueuedthread.cpp')
-rw-r--r-- | indra/llcommon/llqueuedthread.cpp | 7 |
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(); } } |