#include <llvfsthread.h>


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 () |
| U8 * | getBuffer () |
| LLVFS * | getVFS () |
| std::string | getFilename () |
| bool | processRequest () |
| void | finishRequest (bool completed) |
| void | deleteRequest () |
Protected Member Functions | |
| ~Request () | |
Private Attributes | |
| operation_t | mOperation |
| LLVFS * | mVFS |
| LLUUID | mFileID |
| LLAssetType::EType | mFileType |
| U8 * | mBuffer |
| S32 | mOffset |
| S32 | mBytes |
| S32 | mBytesRead |
Definition at line 61 of file llvfsthread.h.
| 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.

| S32 LLVFSThread::Request::getBytesRead | ( | ) | [inline] |
Definition at line 72 of file llvfsthread.h.
References mBytesRead.
Referenced by LLVFile::isReadComplete(), LLVFSThread::readImmediate(), and LLVFSThread::writeImmediate().

| S32 LLVFSThread::Request::getOperation | ( | ) | [inline] |
| U8* LLVFSThread::Request::getBuffer | ( | ) | [inline] |
| LLVFS* LLVFSThread::Request::getVFS | ( | ) | [inline] |
| std::string LLVFSThread::Request::getFilename | ( | ) | [inline] |
Definition at line 88 of file llvfsthread.h.
References mFileID, and LLUUID::toString().

| bool LLVFSThread::Request::processRequest | ( | ) | [virtual] |
Implements LLQueuedThread::QueuedRequest.
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().

| void LLVFSThread::Request::finishRequest | ( | bool | completed | ) | [virtual] |
Reimplemented from LLQueuedThread::QueuedRequest.
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.

| void LLVFSThread::Request::deleteRequest | ( | ) | [virtual] |
Reimplemented from LLQueuedThread::QueuedRequest.
Definition at line 253 of file llvfsthread.cpp.
References LLQueuedThread::QueuedRequest::deleteRequest(), LLVFSThread::FILE_RENAME, LLVFSThread::FILE_WRITE, LLQueuedThread::FLAG_AUTO_DELETE, LLQueuedThread::QueuedRequest::getStatus(), llendl, llerrs, mBuffer, LLQueuedThread::QueuedRequest::mFlags, mOperation, and LLQueuedThread::STATUS_QUEUED.
Referenced by LLVFSThread::read(), LLVFSThread::readImmediate(), LLVFSThread::write(), and LLVFSThread::writeImmediate().


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().
LLUUID LLVFSThread::Request::mFileID [private] |
Definition at line 103 of file llvfsthread.h.
Referenced by finishRequest(), getFilename(), processRequest(), and Request().
Definition at line 104 of file llvfsthread.h.
Referenced by finishRequest(), processRequest(), and Request().
U8* LLVFSThread::Request::mBuffer [private] |
Definition at line 106 of file llvfsthread.h.
Referenced by deleteRequest(), getBuffer(), processRequest(), and Request().
S32 LLVFSThread::Request::mOffset [private] |
S32 LLVFSThread::Request::mBytes [private] |
S32 LLVFSThread::Request::mBytesRead [private] |
1.5.5