[physfs] Mounting files & CD checking

Matheus Izvekov mizvekov at gmail.com
Sun Jul 5 10:27:21 EDT 2009

On 13:27 Sun 05 Jul     , Tim Čas wrote:
> Hey, this is one of my first mails (if not the first), but I've been a
> member of the list for a few months now.
> I am working on a game engine with an interchangeable backend - one of the
> features is quake-like file handling.
> I am working on a PHYSFS backend for file I/O and I have a question:
> Is PHYSFS_getCdRomDirs() thread-safe?
> I mean, can I use it from a different thread to create a "non-blocking"
> listing - so that the program doesn't get blocked while the CD unit spins up

Physfs is not thread-safe. But are you sure you need thread safety?
>From your description of the problem, it seems that the other thread
will not use physfs, right?
Thread safety is not needed just because you are using threads in your
program. It's needed if you intend to use it from
different threads at the same time.

> _______________________________________________
> physfs mailing list
> physfs at icculus.org
> http://icculus.org/mailman/listinfo/physfs

More information about the physfs mailing list