Merge.
This commit is contained in:
@@ -39,7 +39,7 @@ const S32 LLVFile::WRITE = 0x00000002;
|
||||
const S32 LLVFile::READ_WRITE = 0x00000003; // LLVFile::READ & LLVFile::WRITE
|
||||
const S32 LLVFile::APPEND = 0x00000006; // 0x00000004 & LLVFile::WRITE
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_VFILE_WAIT("VFile Wait");
|
||||
static LLTrace::BlockTimerStatHandle FTM_VFILE_WAIT("VFile Wait");
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
LLVFSThread* LLVFile::sVFSThread = NULL;
|
||||
@@ -315,7 +315,7 @@ BOOL LLVFile::setMaxSize(S32 size)
|
||||
|
||||
if (!mVFS->checkAvailable(size))
|
||||
{
|
||||
//LLFastTimer t(FTM_VFILE_WAIT);
|
||||
//LL_RECORD_BLOCK_TIME(FTM_VFILE_WAIT);
|
||||
S32 count = 0;
|
||||
while (sVFSThread->getPending() > 1000)
|
||||
{
|
||||
@@ -423,7 +423,7 @@ bool LLVFile::isLocked(EVFSLock lock)
|
||||
|
||||
void LLVFile::waitForLock(EVFSLock lock)
|
||||
{
|
||||
//LLFastTimer t(FTM_VFILE_WAIT);
|
||||
//LL_RECORD_BLOCK_TIME(FTM_VFILE_WAIT);
|
||||
// spin until the lock clears
|
||||
while (isLocked(lock))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user