Stefan Behnel | 1 Sep 08:38
Picon
Favicon

Re: [Pyrex] Callbacks from threads and PyGILState_Ensure/PyGILState_Release


Robert Bradshaw wrote:
> Thanks. I think it looks pretty good, but I don't do much with the GIL
> so maybe someone with more experience on that end could comment.

I'll give it a try ASAP. lxml already implements things like this by hand, so
I'll have to rewrite a couple of functions the new way.

> I would propose renaming it to withGIL or something like that (or
> dropping the __ at the very least).

I also like withGIL.

Stefan

Gmane