This commit is contained in:
Glenn Maynard
2007-04-28 22:06:57 +00:00
parent 0298438390
commit 57cbdaeffe
+2 -4
View File
@@ -672,13 +672,11 @@ public:
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()
{ {