Easy, and thanks for the suggestion: https://github.com/OpenImageIO/oiio/pull/649
On Jul 31, 2013, at 11:23 AM, Lerenard Michel wrote: > Ok great ! :) > > > 2013/7/31 Larry Gritz <[email protected]> > You're right, the lock only needs to be around use of the output_formats[] > array. It does not need to include calling the create_function() itself once > it's been looked up. I will submit a fix for it. > > -- lg > > > On Jul 31, 2013, at 6:54 AM, Michel Lerenard wrote: > > > Hi, > > > > I've seen that the ImageInput::create function locks a mutex before getting > > the list of plugins. It seems the mutex is released when the > > recursive_lock_guard gets out of scope, which means AFTER the load is done: > > the library can not load two files at the same time. > > What exactly is this lock protecting ? > > > > I was wondering if there is somewhere a plan to have a lock free access via > > ImageInput ? > > > > > > Michel > > -- > Larry Gritz > [email protected] > > > _______________________________________________ > Oiio-dev mailing list > [email protected] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > > _______________________________________________ > Oiio-dev mailing list > [email protected] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org -- Larry Gritz [email protected]
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
