LLTextureCacheWorker Class Reference

Inheritance diagram for LLTextureCacheWorker:

Inheritance graph
[legend]
Collaboration diagram for LLTextureCacheWorker:

Collaboration graph
[legend]

List of all members.

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

LLTextureCachemCache
U32 mPriority
LLUUID mID
U8mReadData
U8mWriteData
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


Detailed Description

Definition at line 48 of file lltexturecache.cpp.


Constructor & Destructor Documentation

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.

Here is the call graph for this function:


Member Function Documentation

virtual bool LLTextureCacheWorker::doRead (  )  [pure virtual]

Implemented in LLTextureCacheLocalFileWorker, and LLTextureCacheRemoteWorker.

Referenced by doWork().

Here is the caller graph for this function:

virtual bool LLTextureCacheWorker::doWrite (  )  [pure virtual]

Implemented in LLTextureCacheLocalFileWorker, and LLTextureCacheRemoteWorker.

Referenced by doWork().

Here is the caller graph for this function:

bool LLTextureCacheWorker::doWork ( S32  param  )  [virtual]

Implements LLWorkerClass.

Definition at line 790 of file lltexturecache.cpp.

References doRead(), doWrite(), and llassert_always.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLTextureCacheWorker::complete (  )  [inline]

Definition at line 122 of file lltexturecache.cpp.

References LLWorkerClass::checkWork().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTextureCacheWorker::startWork ( S32  param  )  [private, virtual]

Implements LLWorkerClass.

Definition at line 303 of file lltexturecache.cpp.

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class LLTextureCache [friend]

Definition at line 50 of file lltexturecache.cpp.


Member Data Documentation

Definition at line 140 of file lltexturecache.cpp.

Referenced by LLTextureCacheRemoteWorker::doWrite(), and finishWork().

Definition at line 146 of file lltexturecache.cpp.

Referenced by finishWork().


The documentation for this class was generated from the following file:

Generated on Fri May 16 09:14:24 2008 for SecondLife by  doxygen 1.5.5