diff options
author | Jacek Antonelli | 2008-08-15 23:45:55 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:55 -0500 |
commit | 9063e60aefe54f7c45aaa8cb24e8998b2c7343ab (patch) | |
tree | 1c8235465701c910a5d76448ddc8eb1f14457ebc /linden/indra/llcommon/llworkerthread.cpp | |
parent | Second Life viewer sources 1.20.9 (diff) | |
download | meta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.zip meta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.tar.gz meta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.tar.bz2 meta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.tar.xz |
Second Life viewer sources 1.20.10
Diffstat (limited to 'linden/indra/llcommon/llworkerthread.cpp')
-rw-r--r-- | linden/indra/llcommon/llworkerthread.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llworkerthread.cpp b/linden/indra/llcommon/llworkerthread.cpp index 6301fa1..0389cff 100644 --- a/linden/indra/llcommon/llworkerthread.cpp +++ b/linden/indra/llcommon/llworkerthread.cpp | |||
@@ -36,6 +36,7 @@ | |||
36 | #include "llframecallbackmanager.h" | 36 | #include "llframecallbackmanager.h" |
37 | #endif | 37 | #endif |
38 | 38 | ||
39 | BOOL LLWorkerClass::sDeleteLock = FALSE ; | ||
39 | //============================================================================ | 40 | //============================================================================ |
40 | // Run on MAIN thread | 41 | // Run on MAIN thread |
41 | 42 | ||
@@ -94,6 +95,7 @@ S32 LLWorkerThread::update(U32 max_time_ms) | |||
94 | { | 95 | { |
95 | (*iter)->abortWork(false); | 96 | (*iter)->abortWork(false); |
96 | } | 97 | } |
98 | LLWorkerClass::sDeleteLock = TRUE ; | ||
97 | for (std::vector<LLWorkerClass*>::iterator iter = delete_list.begin(); | 99 | for (std::vector<LLWorkerClass*>::iterator iter = delete_list.begin(); |
98 | iter != delete_list.end(); ++iter) | 100 | iter != delete_list.end(); ++iter) |
99 | { | 101 | { |
@@ -107,6 +109,7 @@ S32 LLWorkerThread::update(U32 max_time_ms) | |||
107 | } | 109 | } |
108 | delete *iter; | 110 | delete *iter; |
109 | } | 111 | } |
112 | LLWorkerClass::sDeleteLock = FALSE ; | ||
110 | // delete and aborted entries mean there's still work to do | 113 | // delete and aborted entries mean there's still work to do |
111 | res += delete_list.size() + abort_list.size(); | 114 | res += delete_list.size() + abort_list.size(); |
112 | return res; | 115 | return res; |