LLVFSThread::Request Class Reference

#include <llvfsthread.h>

Collaboration diagram for LLVFSThread::Request:

Collaboration graph
List of all members.

Public Member Functions

 Request (handle_t handle, U32 priority, U32 flags, operation_t op, LLVFS *vfs, const LLUUID &file_id, const LLAssetType::EType file_type, U8 *buffer, S32 offset, S32 numbytes)
S32 getBytesRead ()
S32 getOperation ()
U8getBuffer ()
std::string getFilename ()
bool processRequest ()
void finishRequest (bool completed)
void deleteRequest ()

Protected Member Functions

 ~Request ()

Private Attributes

operation_t mOperation
LLAssetType::EType mFileType
S32 mOffset
S32 mBytes
S32 mBytesRead

Detailed Description

Definition at line 61 of file llvfsthread.h.

Constructor & Destructor Documentation

LLVFSThread::Request::~Request (  )  [inline, protected]

Definition at line 64 of file llvfsthread.h.

LLVFSThread::Request::Request ( handle_t  handle,
U32  priority,
U32  flags,
operation_t  op,
LLVFS vfs,
const LLUUID file_id,
const LLAssetType::EType  file_type,
U8 buffer,
S32  offset,
S32  numbytes 

Definition at line 194 of file llvfsthread.cpp.

References LLVFSThread::FILE_RENAME, LLVFSThread::FILE_WRITE, LLVFS::getMaxSize(), LLVFS::incLock(), llassert, llendl, llwarns, mBuffer, mFileID, mFileType, mOperation, mVFS, S32, VFSLOCK_APPEND, and VFSLOCK_READ.

Member Function Documentation

void LLVFSThread::Request::deleteRequest (  ) 

Definition at line 253 of file llvfsthread.cpp.

References LLQueuedThread::QueuedRequest::deleteRequest(), LLVFSThread::FILE_RENAME, LLVFSThread::FILE_WRITE, LLQueuedThread::FLAG_AUTO_DELETE, llendl, llerrs, mBuffer, mOperation, and LLQueuedThread::STATUS_QUEUED.

Referenced by LLVFSThread::read(), LLVFSThread::readImmediate(), LLVFSThread::write(), and LLVFSThread::writeImmediate().

void LLVFSThread::Request::finishRequest ( bool  completed  ) 

Definition at line 237 of file llvfsthread.cpp.

References LLVFS::decLock(), LLVFSThread::FILE_RENAME, LLVFSThread::FILE_WRITE, mFileID, mFileType, mOperation, mVFS, VFSLOCK_APPEND, and VFSLOCK_READ.

U8* LLVFSThread::Request::getBuffer (  )  [inline]

Definition at line 80 of file llvfsthread.h.

References mBuffer.

S32 LLVFSThread::Request::getBytesRead (  )  [inline]

Definition at line 72 of file llvfsthread.h.

References mBytesRead.

Referenced by LLVFile::isReadComplete(), LLVFSThread::readImmediate(), and LLVFSThread::writeImmediate().

std::string LLVFSThread::Request::getFilename (  )  [inline]

Definition at line 88 of file llvfsthread.h.

References mFileID, and LLUUID::toString().

S32 LLVFSThread::Request::getOperation (  )  [inline]

Definition at line 76 of file llvfsthread.h.

References mOperation.

LLVFS* LLVFSThread::Request::getVFS (  )  [inline]

Definition at line 84 of file llvfsthread.h.

References mVFS.

bool LLVFSThread::Request::processRequest (  ) 

Definition at line 274 of file llvfsthread.cpp.

References LLVFSThread::FILE_READ, LLVFSThread::FILE_RENAME, LLVFSThread::FILE_WRITE, LLVFS::getData(), llassert, llendl, llerrs, llformat(), mBuffer, mBytes, mBytesRead, mFileID, mFileType, mOffset, mOperation, mVFS, LLVFS::renameFile(), and LLVFS::storeData().

Member Data Documentation

U8* LLVFSThread::Request::mBuffer [private]

Definition at line 106 of file llvfsthread.h.

Referenced by deleteRequest(), getBuffer(), processRequest(), and Request().

S32 LLVFSThread::Request::mBytes [private]

Definition at line 108 of file llvfsthread.h.

Referenced by processRequest().

S32 LLVFSThread::Request::mBytesRead [private]

Definition at line 109 of file llvfsthread.h.

Referenced by getBytesRead(), and processRequest().

LLUUID LLVFSThread::Request::mFileID [private]

Definition at line 103 of file llvfsthread.h.

Referenced by finishRequest(), getFilename(), processRequest(), and Request().

LLAssetType::EType LLVFSThread::Request::mFileType [private]

Definition at line 104 of file llvfsthread.h.

Referenced by finishRequest(), processRequest(), and Request().

S32 LLVFSThread::Request::mOffset [private]

Definition at line 107 of file llvfsthread.h.

Referenced by processRequest().

operation_t LLVFSThread::Request::mOperation [private]

Definition at line 100 of file llvfsthread.h.

Referenced by deleteRequest(), finishRequest(), getOperation(), processRequest(), and Request().

LLVFS* LLVFSThread::Request::mVFS [private]

Definition at line 102 of file llvfsthread.h.

Referenced by finishRequest(), getVFS(), processRequest(), and Request().

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