LLLFSThread Class Reference

#include <lllfsthread.h>

Inheritance diagram for LLLFSThread:

Inheritance graph
[legend]
Collaboration diagram for LLLFSThread:

Collaboration graph
[legend]
List of all members.

Public Types

 FILE_READ
 FILE_WRITE
 FILE_RENAME
 FILE_REMOVE
enum  operation_t { FILE_READ, FILE_WRITE, FILE_RENAME, FILE_REMOVE }

Public Member Functions

 LLLFSThread (bool threaded=TRUE)
 ~LLLFSThread ()
handle_t read (const LLString &filename, U8 *buffer, S32 offset, S32 numbytes, Responder *responder, U32 pri=0)
handle_t write (const LLString &filename, U8 *buffer, S32 offset, S32 numbytes, Responder *responder, U32 pri=0)
U32 priorityCounter ()

Static Public Member Functions

static void initClass (bool local_is_threaded=TRUE)
static S32 updateClass (U32 ms_elapsed)
static void cleanupClass ()

Static Public Attributes

static LLLFSThreadsLocal = NULL

Private Attributes

U32 mPriorityCounter

Classes

class  Request
class  Responder

Detailed Description

Definition at line 48 of file lllfsthread.h.


Member Enumeration Documentation

enum LLLFSThread::operation_t

Enumerator:
FILE_READ 
FILE_WRITE 
FILE_RENAME 
FILE_REMOVE 

Definition at line 52 of file lllfsthread.h.


Constructor & Destructor Documentation

LLLFSThread::LLLFSThread ( bool  threaded = TRUE  ) 

Definition at line 72 of file lllfsthread.cpp.

Referenced by initClass().

LLLFSThread::~LLLFSThread (  ) 

Definition at line 78 of file lllfsthread.cpp.


Member Function Documentation

void LLLFSThread::cleanupClass (  )  [static]

Definition at line 59 of file lllfsthread.cpp.

References LLQueuedThread::getPending(), LLThread::setQuitting(), sLocal, and LLQueuedThread::update().

Referenced by cleanup_app().

void LLLFSThread::initClass ( bool  local_is_threaded = TRUE  )  [static]

Definition at line 45 of file lllfsthread.cpp.

References llassert, LLLFSThread(), NULL, and sLocal.

Referenced by main().

U32 LLLFSThread::priorityCounter (  )  [inline]

Definition at line 135 of file lllfsthread.h.

References mPriorityCounter, and LLQueuedThread::PRIORITY_LOWBITS.

Referenced by read(), and write().

LLLFSThread::handle_t LLLFSThread::read ( const LLString filename,
U8 buffer,
S32  offset,
S32  numbytes,
Responder responder,
U32  pri = 0 
)

Definition at line 85 of file lllfsthread.cpp.

References LLQueuedThread::addRequest(), FILE_READ, LLQueuedThread::generateHandle(), llendl, llerrs, LLQueuedThread::PRIORITY_LOW, LLQueuedThread::PRIORITY_NORMAL, and priorityCounter().

Referenced by LLTextureCacheWorker::doRead().

S32 LLLFSThread::updateClass ( U32  ms_elapsed  )  [static]

Definition at line 52 of file lllfsthread.cpp.

References LLQueuedThread::getPending(), sLocal, and LLQueuedThread::update().

Referenced by cleanup_app(), and main_loop().

LLLFSThread::handle_t LLLFSThread::write ( const LLString filename,
U8 buffer,
S32  offset,
S32  numbytes,
Responder responder,
U32  pri = 0 
)

Definition at line 108 of file lllfsthread.cpp.

References LLQueuedThread::addRequest(), FILE_WRITE, LLQueuedThread::generateHandle(), llendl, llerrs, LLQueuedThread::PRIORITY_LOW, and priorityCounter().

Referenced by LLTextureCacheWorker::doWrite(), and LLVorbisDecodeState::finishDecode().


Member Data Documentation

U32 LLLFSThread::mPriorityCounter [private]

Definition at line 144 of file lllfsthread.h.

Referenced by priorityCounter().

LLLFSThread * LLLFSThread::sLocal = NULL [static]

Definition at line 147 of file lllfsthread.h.

Referenced by cleanupClass(), LLTextureCacheWorker::doRead(), LLTextureCacheWorker::doWrite(), LLGLTexMemBar::draw(), LLVorbisDecodeState::finishDecode(), initClass(), and updateClass().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:27 2010 for Second Life Viewer by  doxygen 1.4.7