diff options
author | Max Horn | 2005-05-14 22:21:54 +0000 |
---|---|---|
committer | Max Horn | 2005-05-14 22:21:54 +0000 |
commit | 9b9e8424c12024015e0b697222ba0266b0ede5f5 (patch) | |
tree | a1cff3b3f1831265275ff9aaf03c30bd7c783e50 | |
parent | db123a9e7aed6c068bdc26a76ec3bcf752227f6a (diff) | |
download | scummvm-rg350-9b9e8424c12024015e0b697222ba0266b0ede5f5.tar.gz scummvm-rg350-9b9e8424c12024015e0b697222ba0266b0ede5f5.tar.bz2 scummvm-rg350-9b9e8424c12024015e0b697222ba0266b0ede5f5.zip |
Added a TODO for file code
svn-id: r18096
-rw-r--r-- | TODO | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -184,7 +184,15 @@ Files - 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 === |