aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llworkerthread.h
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-30 13:04:20 -0500
committerJacek Antonelli2009-04-30 13:07:16 -0500
commitca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch)
tree8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/llcommon/llworkerthread.h
parentSecond Life viewer sources 1.22.11 (diff)
downloadmeta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz
Second Life viewer sources 1.23.0-RC
Diffstat (limited to 'linden/indra/llcommon/llworkerthread.h')
-rw-r--r--linden/indra/llcommon/llworkerthread.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/linden/indra/llcommon/llworkerthread.h b/linden/indra/llcommon/llworkerthread.h
index 62b0696..19407f4 100644
--- a/linden/indra/llcommon/llworkerthread.h
+++ b/linden/indra/llcommon/llworkerthread.h
@@ -16,7 +16,8 @@
16 * There are special exceptions to the terms and conditions of the GPL as 16 * There are special exceptions to the terms and conditions of the GPL as
17 * it is applied to this Source Code. View the full text of the exception 17 * it is applied to this Source Code. View the full text of the exception
18 * in the file doc/FLOSS-exception.txt in this software distribution, or 18 * in the file doc/FLOSS-exception.txt in this software distribution, or
19 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 19 * online at
20 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
20 * 21 *
21 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
22 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -37,6 +38,7 @@
37#include <set> 38#include <set>
38 39
39#include "llqueuedthread.h" 40#include "llqueuedthread.h"
41#include "llapr.h"
40 42
41#define USE_FRAME_CALLBACK_MANAGER 0 43#define USE_FRAME_CALLBACK_MANAGER 0
42 44
@@ -81,14 +83,11 @@ private:
81 typedef std::list<LLWorkerClass*> delete_list_t; 83 typedef std::list<LLWorkerClass*> delete_list_t;
82 delete_list_t mDeleteList; 84 delete_list_t mDeleteList;
83 LLMutex* mDeleteMutex; 85 LLMutex* mDeleteMutex;
84 apr_pool_t* mWorkerAPRPoolp;
85 86
86public: 87public:
87 LLWorkerThread(const std::string& name, bool threaded = true); 88 LLWorkerThread(const std::string& name, bool threaded = true);
88 ~LLWorkerThread(); 89 ~LLWorkerThread();
89 90
90 apr_pool_t* getWorkerAPRPool() { return mWorkerAPRPoolp; }
91
92 /*virtual*/ S32 update(U32 max_time_ms); 91 /*virtual*/ S32 update(U32 max_time_ms);
93 92
94 handle_t addWorkRequest(LLWorkerClass* workerclass, S32 param, U32 priority = PRIORITY_NORMAL); 93 handle_t addWorkRequest(LLWorkerClass* workerclass, S32 param, U32 priority = PRIORITY_NORMAL);
@@ -120,8 +119,6 @@ class LLWorkerClass
120 friend class LLWorkerThread::WorkRequest; 119 friend class LLWorkerThread::WorkRequest;
121 120
122public: 121public:
123 static BOOL sDeleteLock ;
124public:
125 typedef LLWorkerThread::handle_t handle_t; 122 typedef LLWorkerThread::handle_t handle_t;
126 enum FLAGS 123 enum FLAGS
127 { 124 {