aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llvfs/llvfile.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llvfs/llvfile.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/llvfs/llvfile.cpp')
-rw-r--r--linden/indra/llvfs/llvfile.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/llvfs/llvfile.cpp b/linden/indra/llvfs/llvfile.cpp
index 2faa5c3..e958b33 100644
--- a/linden/indra/llvfs/llvfile.cpp
+++ b/linden/indra/llvfs/llvfile.cpp
@@ -70,12 +70,12 @@ LLVFile::~LLVFile()
70 { 70 {
71 if (!(mMode & LLVFile::WRITE)) 71 if (!(mMode & LLVFile::WRITE))
72 { 72 {
73 // llwarns << "Destroying LLVFile with pending async read/write, aborting..." << llendl; 73 //llwarns << "Destroying LLVFile with pending async read/write, aborting..." << llendl;
74 sVFSThread->abortRequest(mHandle, LLVFSThread::AUTO_COMPLETE); 74 sVFSThread->setFlags(mHandle, LLVFSThread::FLAG_AUTO_COMPLETE | LLVFSThread::FLAG_ABORT);
75 } 75 }
76 else // WRITE 76 else // WRITE
77 { 77 {
78 sVFSThread->setFlags(mHandle, LLVFSThread::AUTO_COMPLETE); 78 sVFSThread->setFlags(mHandle, LLVFSThread::FLAG_AUTO_COMPLETE);
79 } 79 }
80 } 80 }
81 } 81 }
@@ -135,7 +135,7 @@ U8* LLVFile::readFile(LLVFS *vfs, const LLUUID &uuid, LLAssetType::EType type, S
135 else 135 else
136 { 136 {
137 data = new U8[file_size]; 137 data = new U8[file_size];
138 file.read(data, file_size); 138 file.read(data, file_size); /* Flawfinder: ignore */
139 139
140 if (file.getLastBytesRead() != (S32)file_size) 140 if (file.getLastBytesRead() != (S32)file_size)
141 { 141 {
@@ -213,8 +213,8 @@ BOOL LLVFile::write(const U8 *buffer, S32 bytes)
213 S32 offset = -1; 213 S32 offset = -1;
214 mHandle = sVFSThread->write(mVFS, mFileID, mFileType, 214 mHandle = sVFSThread->write(mVFS, mFileID, mFileType,
215 writebuf, offset, bytes, 215 writebuf, offset, bytes,
216 LLVFSThread::AUTO_COMPLETE | LLVFSThread::AUTO_DELETE); 216 LLVFSThread::FLAG_AUTO_COMPLETE | LLVFSThread::FLAG_AUTO_DELETE);
217 mHandle = LLVFSThread::nullHandle(); // AUTO_COMPLETE means we don't track this 217 mHandle = LLVFSThread::nullHandle(); // FLAG_AUTO_COMPLETE means we don't track this
218 } 218 }
219 else 219 else
220 { 220 {
@@ -323,7 +323,7 @@ BOOL LLVFile::setMaxSize(S32 size)
323 } 323 }
324 if (sVFSThread->isPaused()) 324 if (sVFSThread->isPaused())
325 { 325 {
326 sVFSThread->updateQueue(0); 326 sVFSThread->update(0);
327 } 327 }
328 ms_sleep(10); 328 ms_sleep(10);
329 } 329 }
@@ -427,7 +427,7 @@ void LLVFile::waitForLock(EVFSLock lock)
427 { 427 {
428 if (sVFSThread->isPaused()) 428 if (sVFSThread->isPaused())
429 { 429 {
430 sVFSThread->updateQueue(0); 430 sVFSThread->update(0);
431 } 431 }
432 ms_sleep(1); 432 ms_sleep(1);
433 } 433 }