Definition at line 48 of file lltexturecache.cpp.
enum LLTextureCacheWorker::e_state [private] |
LLTextureCacheWorker::LLTextureCacheWorker | ( | LLTextureCache * | cache, | |
U32 | priority, | |||
const LLUUID & | id, | |||
U8 * | data, | |||
S32 | datasize, | |||
S32 | offset, | |||
S32 | imagesize, | |||
LLTextureCache::Responder * | responder | |||
) | [inline] |
Definition at line 95 of file lltexturecache.cpp.
References mPriority, and LLQueuedThread::PRIORITY_LOWBITS.
LLTextureCacheWorker::~LLTextureCacheWorker | ( | ) | [inline] |
Definition at line 118 of file lltexturecache.cpp.
References LLWorkerClass::haveWork(), llassert_always, and mReadData.
bool LLTextureCacheWorker::complete | ( | ) | [inline] |
bool LLTextureCacheWorker::doRead | ( | ) |
Definition at line 166 of file lltexturecache.cpp.
References BODY, CACHE, LLTextureCache::getFileAPRPool(), LLTextureCache::getHeaderCacheEntry(), LLTextureCache::getLocalFileName(), LLTextureCache::getTextureFileName(), HEADER, IMG_CODEC_TGA, INIT, ll_apr_file_read_ex(), ll_apr_file_size(), llassert_always, llendl, llmax(), llmin(), llwarns, LOCAL, mBytesRead, mBytesToRead, mCache, mDataSize, mFileHandle, LLTextureCache::mHeaderDataFileName, mID, mImageFormat, mImageLocal, mImageSize, mOffset, mPriority, mReadData, LLWorkerClass::mRequestHandle, mState, NULL, LLQueuedThread::nullHandle(), LLQueuedThread::PRIORITY_LOW, LLLFSThread::read(), S32, LLWorkerClass::setPriority(), size, LLLFSThread::sLocal, TEXTURE_CACHE_ENTRY_SIZE, and TRUE.
Referenced by doWork().
bool LLTextureCacheWorker::doWork | ( | S32 | param | ) | [virtual] |
Implements LLWorkerClass.
Definition at line 651 of file lltexturecache.cpp.
References doRead(), doWrite(), and llassert_always.
bool LLTextureCacheWorker::doWrite | ( | ) |
Definition at line 471 of file lltexturecache.cpp.
References LLTextureCache::appendToTextureEntryList(), BODY, CACHE, LLTextureCache::getFileAPRPool(), LLTextureCache::getHeaderCacheEntry(), LLTextureCache::getTextureFileName(), HEADER, INIT, ll_apr_file_write_ex(), llassert_always, llendl, llmax(), llwarns, mBytesRead, mBytesToRead, mCache, mDataSize, mFileHandle, LLTextureCache::mHeaderDataFileName, mID, mImageSize, mOffset, mPriority, LLWorkerClass::mRequestHandle, mState, mWriteData, LLQueuedThread::nullHandle(), LLQueuedThread::PRIORITY_LOW, S32, LLWorkerClass::setPriority(), size, LLLFSThread::sLocal, TEXTURE_CACHE_ENTRY_SIZE, and LLLFSThread::write().
Referenced by doWork().
Implements LLWorkerClass.
Definition at line 702 of file lltexturecache.cpp.
References mCache, mDataSize, mID, and LLTextureCache::removeFromCache().
Reimplemented from LLWorkerClass.
Definition at line 670 of file lltexturecache.cpp.
References LLTextureCache::addCompleted(), mCache, mDataSize, mImageFormat, mImageLocal, mImageSize, mReadData, mResponder, mWriteData, LLPointer< Type >::notNull(), and NULL.
Definition at line 131 of file lltexturecache.cpp.
References mBytesRead, mPriority, LLQueuedThread::PRIORITY_HIGH, and LLWorkerClass::setPriority().
Referenced by LLTextureCacheWorker::WriteResponder::completed(), and LLTextureCacheWorker::ReadResponder::completed().
handle_t LLTextureCacheWorker::read | ( | ) | [inline] |
Definition at line 128 of file lltexturecache.cpp.
References LLWorkerClass::addWork(), mPriority, LLWorkerClass::mRequestHandle, and LLQueuedThread::PRIORITY_HIGH.
Referenced by LLTextureCache::readFromCache().
handle_t LLTextureCacheWorker::write | ( | ) | [inline] |
Definition at line 129 of file lltexturecache.cpp.
References LLWorkerClass::addWork(), mPriority, LLWorkerClass::mRequestHandle, and LLQueuedThread::PRIORITY_HIGH.
Referenced by LLTextureCache::writeToCache().
friend class LLTextureCache [friend] |
Definition at line 50 of file lltexturecache.cpp.
LLAtomicS32 LLTextureCacheWorker::mBytesRead [private] |
Definition at line 158 of file lltexturecache.cpp.
Referenced by doRead(), doWrite(), and ioComplete().
S32 LLTextureCacheWorker::mBytesToRead [private] |
LLTextureCache* LLTextureCacheWorker::mCache [private] |
Definition at line 143 of file lltexturecache.cpp.
Referenced by doRead(), doWrite(), endWork(), and finishWork().
S32 LLTextureCacheWorker::mDataSize [private] |
Definition at line 150 of file lltexturecache.cpp.
Referenced by doRead(), doWrite(), endWork(), and finishWork().
LLUUID LLTextureCacheWorker::mID [private] |
Definition at line 145 of file lltexturecache.cpp.
S32 LLTextureCacheWorker::mImageFormat [private] |
BOOL LLTextureCacheWorker::mImageLocal [private] |
S32 LLTextureCacheWorker::mImageSize [private] |
Definition at line 152 of file lltexturecache.cpp.
Referenced by doRead(), doWrite(), and finishWork().
S32 LLTextureCacheWorker::mOffset [private] |
U32 LLTextureCacheWorker::mPriority [private] |
Definition at line 144 of file lltexturecache.cpp.
Referenced by doRead(), doWrite(), ioComplete(), LLTextureCacheWorker(), read(), and write().
U8* LLTextureCacheWorker::mReadData [private] |
Definition at line 148 of file lltexturecache.cpp.
Referenced by doRead(), finishWork(), and ~LLTextureCacheWorker().
e_state LLTextureCacheWorker::mState [private] |
U8* LLTextureCacheWorker::mWriteData [private] |