aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llworkerthread.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-09-03 14:39:47 -0700
committerMcCabe Maxsted2010-09-03 14:39:47 -0700
commitb88d3f2a93f4cb479fc139844fe8ef3e8524277a (patch)
treebbb628c000ad0522e6b12c4315989b687497c77d /linden/indra/llcommon/llworkerthread.cpp
parentAdded some subgroups to the SL dic (these commits should really be squashed o... (diff)
downloadmeta-impy-b88d3f2a93f4cb479fc139844fe8ef3e8524277a.zip
meta-impy-b88d3f2a93f4cb479fc139844fe8ef3e8524277a.tar.gz
meta-impy-b88d3f2a93f4cb479fc139844fe8ef3e8524277a.tar.bz2
meta-impy-b88d3f2a93f4cb479fc139844fe8ef3e8524277a.tar.xz
Revert "Updated lltexturecache to the latest in viewer-development (see #425)" since it was causing issues with local assets and object backup
This reverts commit 4ca4594ec264f390be981568ef5ff3ff0f2f77e6.
Diffstat (limited to '')
-rw-r--r--linden/indra/llcommon/llworkerthread.cpp39
1 files changed, 2 insertions, 37 deletions
diff --git a/linden/indra/llcommon/llworkerthread.cpp b/linden/indra/llcommon/llworkerthread.cpp
index 67664c7..8195e1c 100644
--- a/linden/indra/llcommon/llworkerthread.cpp
+++ b/linden/indra/llcommon/llworkerthread.cpp
@@ -60,27 +60,6 @@ LLWorkerThread::~LLWorkerThread()
60 // ~LLQueuedThread() will be called here 60 // ~LLQueuedThread() will be called here
61} 61}
62 62
63//called only in destructor.
64void LLWorkerThread::clearDeleteList()
65{
66 // Delete any workers in the delete queue (should be safe - had better be!)
67 if (!mDeleteList.empty())
68 {
69 llwarns << "Worker Thread: " << mName << " destroyed with " << mDeleteList.size()
70 << " entries in delete list." << llendl;
71
72 mDeleteMutex->lock();
73 for (delete_list_t::iterator iter = mDeleteList.begin(); iter != mDeleteList.end(); ++iter)
74 {
75 (*iter)->mRequestHandle = LLWorkerThread::nullHandle();
76 (*iter)->clearFlags(LLWorkerClass::WCF_HAVE_WORK);
77 delete *iter ;
78 }
79 mDeleteList.clear() ;
80 mDeleteMutex->unlock() ;
81 }
82}
83
84// virtual 63// virtual
85S32 LLWorkerThread::update(U32 max_time_ms) 64S32 LLWorkerThread::update(U32 max_time_ms)
86{ 65{
@@ -204,7 +183,6 @@ LLWorkerClass::LLWorkerClass(LLWorkerThread* workerthread, const std::string& na
204 : mWorkerThread(workerthread), 183 : mWorkerThread(workerthread),
205 mWorkerClassName(name), 184 mWorkerClassName(name),
206 mRequestHandle(LLWorkerThread::nullHandle()), 185 mRequestHandle(LLWorkerThread::nullHandle()),
207 mRequestPriority(LLWorkerThread::PRIORITY_NORMAL),
208 mMutex(NULL), 186 mMutex(NULL),
209 mWorkFlags(0) 187 mWorkFlags(0)
210{ 188{
@@ -336,20 +314,7 @@ bool LLWorkerClass::checkWork(bool aborting)
336 if (mRequestHandle != LLWorkerThread::nullHandle()) 314 if (mRequestHandle != LLWorkerThread::nullHandle())
337 { 315 {
338 LLWorkerThread::WorkRequest* workreq = (LLWorkerThread::WorkRequest*)mWorkerThread->getRequest(mRequestHandle); 316 LLWorkerThread::WorkRequest* workreq = (LLWorkerThread::WorkRequest*)mWorkerThread->getRequest(mRequestHandle);
339 if(!workreq) 317 llassert_always(workreq);
340 {
341 if(mWorkerThread->isQuitting() || mWorkerThread->isStopped()) //the mWorkerThread is not running
342 {
343 mRequestHandle = LLWorkerThread::nullHandle();
344 clearFlags(WCF_HAVE_WORK);
345 }
346 else
347 {
348 llassert_always(workreq);
349 }
350 return true ;
351 }
352
353 LLQueuedThread::status_t status = workreq->getStatus(); 318 LLQueuedThread::status_t status = workreq->getStatus();
354 if (status == LLWorkerThread::STATUS_ABORTED) 319 if (status == LLWorkerThread::STATUS_ABORTED)
355 { 320 {
@@ -399,7 +364,7 @@ void LLWorkerClass::scheduleDelete()
399void LLWorkerClass::setPriority(U32 priority) 364void LLWorkerClass::setPriority(U32 priority)
400{ 365{
401 mMutex.lock(); 366 mMutex.lock();
402 if (mRequestHandle != LLWorkerThread::nullHandle() && mRequestPriority != priority) 367 if (mRequestHandle != LLWorkerThread::nullHandle())
403 { 368 {
404 mRequestPriority = priority; 369 mRequestPriority = priority;
405 mWorkerThread->setPriority(mRequestHandle, priority); 370 mWorkerThread->setPriority(mRequestHandle, priority);