summaryrefslogtreecommitdiff
path: root/indra/llcommon/llmemory.h
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-07-20 16:05:19 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-07-20 16:05:19 -0600
commit48d949150cd445ce1e801a7a8ee67597a965f14b (patch)
treeba04dbf2438246c5b2842ae4aa5348ee7556ed7a /indra/llcommon/llmemory.h
parentf7861eaf4e50ca2b868179ced6258f9d936a2b9c (diff)
add a debug setting "MemoryPrivatePoolEnabled" to turn on/off private memory pool.
Diffstat (limited to 'indra/llcommon/llmemory.h')
-rw-r--r--indra/llcommon/llmemory.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llcommon/llmemory.h b/indra/llcommon/llmemory.h
index 26488423a3..f9099da612 100644
--- a/indra/llcommon/llmemory.h
+++ b/indra/llcommon/llmemory.h
@@ -367,11 +367,12 @@ private:
class LL_COMMON_API LLPrivateMemoryPoolManager
{
private:
- LLPrivateMemoryPoolManager() ;
+ LLPrivateMemoryPoolManager(BOOL enabled) ;
~LLPrivateMemoryPoolManager() ;
-public:
+public:
static LLPrivateMemoryPoolManager* getInstance() ;
+ static void initClass(BOOL enabled) ;
static void destroyClass() ;
LLPrivateMemoryPool* newPool(S32 type) ;
@@ -380,6 +381,7 @@ public:
private:
static LLPrivateMemoryPoolManager* sInstance ;
std::vector<LLPrivateMemoryPool*> mPoolList ;
+ BOOL mPrivatePoolEnabled;
public:
//debug and statistics info.