[Pyrex] Callbacks from threads and PyGILState_Ensure/PyGILState_Release

Ulisses Furquim ulisses.silva at openbossa.org
Wed Aug 15 16:04:18 CEST 2007


Hi Greg,

On 8/14/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Ulisses Furquim wrote:
> > The patch adds a reserved word '__grabgil' that can be added to cdef
> > functions to automatically generate calls to PyGILState_Ensure and
> > PyGILState_Release at the right places.
>
> Thanks for the patch. I've been thinking about something
> like this myself, only in a slightly more general way:
> rather than being attached to a specific function, the
> option would be part of a function type, and considered
> part of the calling signature of the function.

Do you mean the option be part of a CFuncDeclaratorNode? Or do you
want to extend this to all functions?

> I'll see if I can incorporate your code next time I'm
> working on this.

That would be great. Thanks.

Regards,

-- Ulisses



More information about the Pyrex mailing list