// // //LLAPRPool // LLAPRPool::LLAPRPool(apr_pool_t *parent, apr_size_t size, BOOL releasePoolFlag) : mParent(parent), mReleasePoolFlag(releasePoolFlag), mMaxSize(size), mPool(NULL) { createAPRPool() ; }
apr_pool_t* LLAPRPool::getAPRPool() { if(!mPool) { createAPRPool() ; } return mPool ; }
// // //LLAPRPool // LLAPRPool::LLAPRPool(apr_pool_t *parent, apr_size_t size, BOOL releasePoolFlag) { mParent = parent ; mReleasePoolFlag = releasePoolFlag ; mMaxSize = size ; mPool = NULL ; createAPRPool() ; }
apr_pool_t* LLVolatileAPRPool::getVolatileAPRPool() { LLScopedLock lock(mMutexp) ; mNumTotalRef++ ; mNumActiveRef++ ; if(!mPool) { createAPRPool() ; } return mPool ; }