[Pyrex] Pyrex and the GIL

Grant McDonald gmcdonald at infocomp.com
Wed Sep 7 06:17:45 CEST 2005


>   cdef void my_callback() nogil
>     ...code here...

I think that it's always better to be explicit in these matters:

	cdef void my_callback() transientGIL

and perhaps:

	cdef extern int foo(int blarg) transientNoGIL

Something that indicates the transient/transitioning nature of the
acquisition/release or release/acquisition like above may be appropriate.

Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20050907/db22f779/attachment.html


More information about the Pyrex mailing list