Re: [AD] search path?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Wed April 15 2009, Elias Pschernig wrote:
> Thomas Fjellstrom wrote:
> > My original code had a couple functions to set and get individual vtable
> > functions. The enum had items for each function.
> >
> > al_fs_set_hook(ALLEGRO_FSHOOK_FWRITE, _al_fs_stdio_fwrite); // blah
>
> Ah, that wouldn't work well in a multi-threaded environment. I want to be
> able for something to spawn a thread, and that thread then opens a zip file
> and loads the data in it. The main thread should not be affected by it.

Why would you change the fshooks for a single thread? Any zip supporting 
fshook addon will have to know about the normal filesystem. so setting it once 
at the beginning (init_zip_addon()) will do just fine.

-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/