[physfs] Mounting files & CD checking

Tim Čas darkuranium at gmail.com
Sun Jul 5 11:58:05 EDT 2009


The other thread will use PHYSFS_getCdRomDirs() (and possibly its
file-listing methods later, if I intent to implement recursive file listing)

2009/7/5 Matheus Izvekov <mizvekov at gmail.com>

> 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
>
> _______________________________________________
> physfs mailing list
> physfs at icculus.org
> http://icculus.org/mailman/listinfo/physfs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/physfs/attachments/20090705/d52ed306/attachment.htm>


More information about the physfs mailing list