

Public Member Functions | |
| LLTextureCacheWorker (LLTextureCache *cache, U32 priority, const LLUUID &id, U8 *data, S32 datasize, S32 offset, S32 imagesize, LLTextureCache::Responder *responder) | |
| ~LLTextureCacheWorker () | |
| virtual bool | doRead ()=0 |
| virtual bool | doWrite ()=0 |
| virtual bool | doWork (S32 param) |
| handle_t | read () |
| handle_t | write () |
| bool | complete () |
| void | ioComplete (S32 bytes) |
Protected Attributes | |
| LLTextureCache * | mCache |
| U32 | mPriority |
| LLUUID | mID |
| U8 * | mReadData |
| U8 * | mWriteData |
| S32 | mDataSize |
| S32 | mOffset |
| S32 | mImageSize |
| EImageCodec | mImageFormat |
| BOOL | mImageLocal |
| LLPointer < LLTextureCache::Responder > | mResponder |
| LLLFSThread::handle_t | mFileHandle |
| S32 | mBytesToRead |
| LLAtomicS32 | mBytesRead |
Private Member Functions | |
| virtual void | startWork (S32 param) |
| virtual void | finishWork (S32 param, bool completed) |
| virtual void | endWork (S32 param, bool aborted) |
Friends | |
| class | LLTextureCache |
Classes | |
| class | ReadResponder |
| class | WriteResponder |
Definition at line 48 of file lltexturecache.cpp.
| LLTextureCacheWorker::LLTextureCacheWorker | ( | LLTextureCache * | cache, | |
| U32 | priority, | |||
| const LLUUID & | id, | |||
| U8 * | data, | |||
| S32 | datasize, | |||
| S32 | offset, | |||
| S32 | imagesize, | |||
| LLTextureCache::Responder * | responder | |||
| ) | [inline] |
Definition at line 86 of file lltexturecache.cpp.
References mPriority, and LLQueuedThread::PRIORITY_LOWBITS.
| LLTextureCacheWorker::~LLTextureCacheWorker | ( | ) | [inline] |
Definition at line 108 of file lltexturecache.cpp.
References LLWorkerClass::haveWork(), llassert_always, and mReadData.

| virtual bool LLTextureCacheWorker::doRead | ( | ) | [pure virtual] |
Implemented in LLTextureCacheLocalFileWorker, and LLTextureCacheRemoteWorker.
Referenced by doWork().

| virtual bool LLTextureCacheWorker::doWrite | ( | ) | [pure virtual] |
Implemented in LLTextureCacheLocalFileWorker, and LLTextureCacheRemoteWorker.
Referenced by doWork().

| bool LLTextureCacheWorker::doWork | ( | S32 | param | ) | [virtual] |
Implements LLWorkerClass.
Definition at line 790 of file lltexturecache.cpp.
References doRead(), doWrite(), and llassert_always.

| handle_t LLTextureCacheWorker::read | ( | ) | [inline] |
Definition at line 120 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 121 of file lltexturecache.cpp.
References LLWorkerClass::addWork(), mPriority, LLWorkerClass::mRequestHandle, and LLQueuedThread::PRIORITY_HIGH.
Referenced by LLTextureCache::writeToCache().


| bool LLTextureCacheWorker::complete | ( | ) | [inline] |
Definition at line 122 of file lltexturecache.cpp.
References LLWorkerClass::checkWork().

| void LLTextureCacheWorker::ioComplete | ( | S32 | bytes | ) | [inline] |
Definition at line 123 of file lltexturecache.cpp.
References mBytesRead, mPriority, LLQueuedThread::PRIORITY_HIGH, and LLWorkerClass::setPriority().
Referenced by LLTextureCacheWorker::WriteResponder::completed(), and LLTextureCacheWorker::ReadResponder::completed().


| void LLTextureCacheWorker::startWork | ( | S32 | param | ) | [private, virtual] |
| void LLTextureCacheWorker::finishWork | ( | S32 | param, | |
| bool | completed | |||
| ) | [private, virtual] |
Reimplemented from LLWorkerClass.
Definition at line 809 of file lltexturecache.cpp.
References LLTextureCache::addCompleted(), mCache, mDataSize, mImageFormat, mImageLocal, mImageSize, mReadData, mResponder, mWriteData, LLPointer< Type >::notNull(), and NULL.

| void LLTextureCacheWorker::endWork | ( | S32 | param, | |
| bool | aborted | |||
| ) | [private, virtual] |
Implements LLWorkerClass.
Definition at line 841 of file lltexturecache.cpp.
References mCache, mDataSize, mID, and LLTextureCache::removeFromCache().

friend class LLTextureCache [friend] |
Definition at line 50 of file lltexturecache.cpp.
LLTextureCache* LLTextureCacheWorker::mCache [protected] |
Definition at line 135 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), LLTextureCacheRemoteWorker::doWrite(), endWork(), and finishWork().
U32 LLTextureCacheWorker::mPriority [protected] |
Definition at line 136 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), LLTextureCacheRemoteWorker::doWrite(), ioComplete(), LLTextureCacheWorker(), read(), LLTextureCache::update(), and write().
LLUUID LLTextureCacheWorker::mID [protected] |
Definition at line 137 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheRemoteWorker::doWrite(), and endWork().
U8* LLTextureCacheWorker::mReadData [protected] |
Definition at line 139 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), finishWork(), and ~LLTextureCacheWorker().
U8* LLTextureCacheWorker::mWriteData [protected] |
Definition at line 140 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doWrite(), and finishWork().
S32 LLTextureCacheWorker::mDataSize [protected] |
Definition at line 141 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), LLTextureCacheRemoteWorker::doWrite(), endWork(), and finishWork().
S32 LLTextureCacheWorker::mOffset [protected] |
Definition at line 142 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), and LLTextureCacheRemoteWorker::doWrite().
S32 LLTextureCacheWorker::mImageSize [protected] |
Definition at line 143 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), LLTextureCacheRemoteWorker::doWrite(), and finishWork().
EImageCodec LLTextureCacheWorker::mImageFormat [protected] |
Definition at line 144 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), and finishWork().
BOOL LLTextureCacheWorker::mImageLocal [protected] |
Definition at line 145 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), and finishWork().
Definition at line 147 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), and LLTextureCacheRemoteWorker::doWrite().
S32 LLTextureCacheWorker::mBytesToRead [protected] |
Definition at line 148 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), and LLTextureCacheRemoteWorker::doWrite().
LLAtomicS32 LLTextureCacheWorker::mBytesRead [protected] |
Definition at line 149 of file lltexturecache.cpp.
Referenced by LLTextureCacheRemoteWorker::doRead(), LLTextureCacheLocalFileWorker::doRead(), LLTextureCacheRemoteWorker::doWrite(), and ioComplete().
1.5.5