diff options
author | skolb <> | 2009-12-18 10:54:16 -0800 |
---|---|---|
committer | skolb <> | 2009-12-18 10:54:16 -0800 |
commit | d5b53eb483ec042d83859ec957dce7699c7469aa (patch) | |
tree | 289ff588bf8f35bc94fbdf3844279bc8cd299b1a /indra/llcommon | |
parent | eb7bd0a214ad794db9cb2acb33c45b9d7f46b981 (diff) | |
parent | ad6d0e3bb766c737b1e9bbd9d006391cc8bcc085 (diff) |
Merge viewer 2 into media
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/llqueuedthread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/llqueuedthread.cpp b/indra/llcommon/llqueuedthread.cpp index eacbbb3ee0..06ceeb2bc3 100644 --- a/indra/llcommon/llqueuedthread.cpp +++ b/indra/llcommon/llqueuedthread.cpp @@ -437,6 +437,7 @@ S32 LLQueuedThread::processNextRequest() if (req) { // process request + U32 start_priority = req->getPriority(); bool complete = req->processRequest(); if (complete) @@ -457,9 +458,8 @@ S32 LLQueuedThread::processNextRequest() lockData(); req->setStatus(STATUS_QUEUED); mRequestQueue.insert(req); - U32 priority = req->getPriority(); unlockData(); - if (priority < PRIORITY_NORMAL) + if (mThreaded && start_priority <= PRIORITY_LOW) { ms_sleep(1); // sleep the thread a little } |