On Sat, 2008-01-05 at 10:10 +0100, Dirk Meyer wrote:
> > +    Py_BEGIN_ALLOW_THREADS
> >      imlib_context_set_image(((Image_PyObject *)self)->image);
> > -
> >      image = imlib_create_rotated_image(angle);
> > +    Py_END_ALLOW_THREADS
> 
> This is not thread safe. We should add a note that kaa.imlib2 is not
> thread safe!

Well that's a valid point.  It's easy enough just to use a global imlib2
mutex to prevent reentry.  I think I'll do this, that way it's thread
safe.  It's not acceptable to risk a segfault, so the alternative is to
keep the GIL, which I don't want to do.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to