LLTextureCache::LLTextureCache(bool threaded) : LLWorkerThread("TextureCache", threaded), mWorkersMutex(getAPRPool()), mHeaderMutex(getAPRPool()), mListMutex(getAPRPool()), mFileAPRPool(NULL), mReadOnly(FALSE), mTexturesSizeTotal(0), mDoPurge(FALSE) { apr_pool_create(&mFileAPRPool, NULL); }
LLWorkerThread::LLWorkerThread(const std::string& name, bool threaded) : LLQueuedThread(name, threaded), mWorkerAPRPoolp(NULL) { apr_pool_create(&mWorkerAPRPoolp, NULL); mDeleteMutex = new LLMutex(getAPRPool()); }
// MAIN THREAD LLImageDecodeThread::LLImageDecodeThread(bool threaded) : LLQueuedThread("imagedecode", threaded) { mCreationMutex = new LLMutex(getAPRPool()); }
apr_pool_t* LLVolatileAPRPool::getVolatileAPRPool() { mNumTotalRef++ ; mNumActiveRef++ ; return getAPRPool() ; }