[physfs] Multithreading / MSYS compilation

Christoph Nelles evilazrael at evilazrael.de
Thu Jan 7 13:21:55 EST 2010


Hi,

i am currently thinking about using physfs in my project. I am a little
puzzled what "For efficiency, individual file accesses are not locked,
so you can not safely read/write/seek/close/etc the same file from two
threads at the same time" exactly means?
May an opened archive only be accessed from a thread?
An abstracted file cannot be opened twice generally?
Or may a PHYSFS_File descriptor not be used simultaneously, but opening
a file twice will work?

I got first stuck at the same problem described in
http://icculus.org/pipermail/physfs/2009-July/000757.html . Perhaps a
notice or new patch release could help others to avoid this. Or have i
overlooked something?

Thanks in advance for an answer

-- 
Christoph Nelles

E-Mail    : evilazrael at evilazrael.de
Jabber    : eazrael at evilazrael.net      ICQ       : 78819723

PGP-Key   : ID 0x424FB55B on subkeys.pgp.net
            or http://evilazrael.net/pgp.txt



More information about the physfs mailing list