diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2011-10-05 15:21:10 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2011-10-05 15:21:10 -0600 |
commit | 5ef05e151d24e15a175d4f78ff17b6abdd36bbc4 (patch) | |
tree | 5f213a3b61df3b4d9b191db2f1f93babf6453747 /indra/llcommon/llqueuedthread.cpp | |
parent | 77eb3aae04b276369aea70d2931f6aed7352d823 (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.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(); } } |