[Scummvm-cvs-logs] CVS: scummvm TODO,1.284,1.285

Max Horn fingolfin at users.sourceforge.net
Sat May 14 15:23:07 CEST 2005


Update of /cvsroot/scummvm/scummvm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24427

Modified Files:
	TODO 
Log Message:
Added a TODO for file code

Index: TODO
===================================================================
RCS file: /cvsroot/scummvm/scummvm/TODO,v
retrieving revision 1.284
retrieving revision 1.285
diff -u -d -r1.284 -r1.285
--- TODO	14 May 2005 15:11:27 -0000	1.284
+++ TODO	14 May 2005 22:21:54 -0000	1.285
@@ -184,7 +184,15 @@
   - convert said string representation back to FSNode
   Of course that can be added w/o a FileManager class, too - but it might be
   nice to have all of these integrated.
-* Add error handling API to SaveFile
+* Get rid of the incRef/decRef API of class File. Instead, add a clone() method
+  which generates a new (independant) File object for the same file (only would
+  work for files in read mode, obviously). Convert the audio code to use this
+  instead of the ref counting.
+  Reason: Using a shared file object can lead to race conditions if multiple
+  threads try to use it at the same time; on some systems (Symbian) it is 
+  apparently not even possible to do it; iahd t can also cause problems even in
+  non-threaded code, when we seek in one block of code, and then try to access it
+  from another block, w/o reseeking first.
 
 GUI
 ===





More information about the Scummvm-git-logs mailing list