diff options
author | Armin Weatherwax | 2010-03-02 14:30:47 +0100 |
---|---|---|
committer | Armin Weatherwax | 2010-03-04 22:34:36 +0100 |
commit | ec63f019e2bfaf2f6b05ca6e93976beac6d0847d (patch) | |
tree | 9dc6c609168a844c7c85a6347a4dbf918176a79f /linden/indra | |
parent | Merov Linden: SNOW-435 mHeaderMutex recursive lock. (diff) | |
download | meta-impy-ec63f019e2bfaf2f6b05ca6e93976beac6d0847d.zip meta-impy-ec63f019e2bfaf2f6b05ca6e93976beac6d0847d.tar.gz meta-impy-ec63f019e2bfaf2f6b05ca6e93976beac6d0847d.tar.bz2 meta-impy-ec63f019e2bfaf2f6b05ca6e93976beac6d0847d.tar.xz |
Vex Streeter, Merov Linden: SNOW-434 Unsafe threaded op. (lltexturefetch.cpp).
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lltexturefetch.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/newview/lltexturefetch.cpp b/linden/indra/newview/lltexturefetch.cpp index 935b8cc..8ff9e9f 100644 --- a/linden/indra/newview/lltexturefetch.cpp +++ b/linden/indra/newview/lltexturefetch.cpp | |||
@@ -1472,8 +1472,12 @@ void LLTextureFetch::deleteRequest(const LLUUID& id, bool cancel) | |||
1472 | // protected | 1472 | // protected |
1473 | void LLTextureFetch::addToNetworkQueue(LLTextureFetchWorker* worker) | 1473 | void LLTextureFetch::addToNetworkQueue(LLTextureFetchWorker* worker) |
1474 | { | 1474 | { |
1475 | mQueueMutex.lock(); | ||
1476 | bool is_worker_in_request_map = (mRequestMap.find(worker->mID) != mRequestMap.end()); | ||
1477 | mQueueMutex.unlock(); | ||
1478 | |||
1475 | LLMutexLock lock(&mNetworkQueueMutex); | 1479 | LLMutexLock lock(&mNetworkQueueMutex); |
1476 | if (mRequestMap.find(worker->mID) != mRequestMap.end()) | 1480 | if (is_worker_in_request_map) |
1477 | { | 1481 | { |
1478 | // only add to the queue if in the request map | 1482 | // only add to the queue if in the request map |
1479 | // i.e. a delete has not been requested | 1483 | // i.e. a delete has not been requested |