aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llthread.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2010-02-08 17:01:00 -0600
committerJacek Antonelli2010-02-08 17:01:00 -0600
commitd96e672c7fa0cb59ef0c30163326bb40220e745a (patch)
tree0578f6258788f44f91dbf84eebdb09d994e2a0e5 /linden/indra/llcommon/llthread.cpp
parentFixed login screen only allowing 16 chars per name. (diff)
downloadmeta-impy-d96e672c7fa0cb59ef0c30163326bb40220e745a.zip
meta-impy-d96e672c7fa0cb59ef0c30163326bb40220e745a.tar.gz
meta-impy-d96e672c7fa0cb59ef0c30163326bb40220e745a.tar.bz2
meta-impy-d96e672c7fa0cb59ef0c30163326bb40220e745a.tar.xz
Ported many APR changes from Snowglobe.
Diffstat (limited to '')
-rw-r--r--linden/indra/llcommon/llthread.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/linden/indra/llcommon/llthread.cpp b/linden/indra/llcommon/llthread.cpp
index 37b03a4..b39ffb6 100644
--- a/linden/indra/llcommon/llthread.cpp
+++ b/linden/indra/llcommon/llthread.cpp
@@ -72,6 +72,9 @@ void *APR_THREAD_FUNC LLThread::staticRun(apr_thread_t *apr_threadp, void *datap
72 // Set thread state to running 72 // Set thread state to running
73 threadp->mStatus = RUNNING; 73 threadp->mStatus = RUNNING;
74 74
75 // Create a thread local APRFile pool.
76 LLVolatileAPRPool::createLocalAPRFilePool();
77
75 // Run the user supplied function 78 // Run the user supplied function
76 threadp->run(); 79 threadp->run();
77 80
@@ -102,20 +105,12 @@ LLThread::LLThread(const std::string& name, apr_pool_t *poolp) :
102 apr_pool_create(&mAPRPoolp, NULL); // Create a subpool for this thread 105 apr_pool_create(&mAPRPoolp, NULL); // Create a subpool for this thread
103 } 106 }
104 mRunCondition = new LLCondition(mAPRPoolp); 107 mRunCondition = new LLCondition(mAPRPoolp);
105
106 mLocalAPRFilePoolp = NULL ;
107} 108}
108 109
109 110
110LLThread::~LLThread() 111LLThread::~LLThread()
111{ 112{
112 shutdown(); 113 shutdown();
113
114 if(mLocalAPRFilePoolp)
115 {
116 delete mLocalAPRFilePoolp ;
117 mLocalAPRFilePoolp = NULL ;
118 }
119} 114}
120 115
121void LLThread::shutdown() 116void LLThread::shutdown()