aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llapr.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:27:37 -0500
committerJacek Antonelli2008-09-06 18:27:41 -0500
commitd78e22887482056e9e29cccf2b7a8a675035d040 (patch)
treea0e0fde1b1a8f91d66c3eb84871b0a3c34947419 /linden/indra/llcommon/llapr.cpp
parentSecond Life viewer sources 1.21.0-RC (diff)
downloadmeta-impy-d78e22887482056e9e29cccf2b7a8a675035d040.zip
meta-impy-d78e22887482056e9e29cccf2b7a8a675035d040.tar.gz
meta-impy-d78e22887482056e9e29cccf2b7a8a675035d040.tar.bz2
meta-impy-d78e22887482056e9e29cccf2b7a8a675035d040.tar.xz
Second Life viewer sources 1.21.1-RC
Diffstat (limited to 'linden/indra/llcommon/llapr.cpp')
-rw-r--r--linden/indra/llcommon/llapr.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llapr.cpp b/linden/indra/llcommon/llapr.cpp
index 73e715a..17c753d 100644
--- a/linden/indra/llcommon/llapr.cpp
+++ b/linden/indra/llcommon/llapr.cpp
@@ -73,6 +73,28 @@ void ll_cleanup_apr()
73} 73}
74 74
75// 75//
76//LLAPRPool
77//
78LLAPRPool::LLAPRPool(apr_pool_t *parent, apr_size_t size)
79{
80 mStatus = apr_pool_create(&mPool, parent);
81
82 if(size > 0) //size is the number of blocks (which is usually 4K), NOT bytes.
83 {
84 apr_allocator_t *allocator = apr_pool_allocator_get(mPool);
85 if (allocator)
86 {
87 apr_allocator_max_free_set(allocator, size) ;
88 }
89 }
90}
91
92LLAPRPool::~LLAPRPool()
93{
94 apr_pool_destroy(mPool) ;
95}
96
97//
76// LLScopedLock 98// LLScopedLock
77// 99//
78LLScopedLock::LLScopedLock(apr_thread_mutex_t* mutex) : mMutex(mutex) 100LLScopedLock::LLScopedLock(apr_thread_mutex_t* mutex) : mMutex(mutex)