#include <lllfsthread.h>
Inheritance diagram for LLLFSThread:
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 LLLFSThread * | sLocal = NULL |
Private Attributes | |
U32 | mPriorityCounter |
Classes | |
class | Request |
class | Responder |
Definition at line 48 of file lllfsthread.h.
Definition at line 52 of file lllfsthread.h.
LLLFSThread::LLLFSThread | ( | bool | threaded = TRUE |
) |
LLLFSThread::~LLLFSThread | ( | ) |
Definition at line 78 of file lllfsthread.cpp.
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.
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().
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().
U32 LLLFSThread::mPriorityCounter [private] |
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().