This commit is contained in:
Glenn Maynard
2007-04-28 22:06:57 +00:00
parent 0298438390
commit 57cbdaeffe
+3 -5
View File
@@ -671,13 +671,11 @@ public:
m_iFileSize = iSize; m_iFileSize = iSize;
m_iMode = iMode; m_iMode = iMode;
/* We have a lot of overhead per read and write operation, since we send /* We have a lot of overhead per read and write operation, since we send
* commands to the worker thread. Buffer these operations. */ * commands to the worker thread. Buffer these operations. */
if( iMode & RageFile::WRITE ){ if( iMode & RageFile::WRITE )
EnableWriteBuffering(); EnableWriteBuffering();
} if( iMode & RageFile::READ )
if( iMode & RageFile::READ ){
EnableReadBuffering(); EnableReadBuffering();
}
} }
~RageFileObjTimeout() ~RageFileObjTimeout()