[Cython] nogil doesn't seem to work when defined on extern cpp functions

Greg Ewing greg.ewing at canterbury.ac.nz
Thu May 9 00:56:08 CEST 2013


Ryan Pessa wrote:
> It doesn't seem like Cython 
> respects the `nogil` statement on extern cpp functions.

The nogil declaration doesn't work that way. Declaring a
function as nogil just says that it's safe to call it
without the GIL -- it doesn't actually cause the GIL to
be released. You need a 'with nogil' block to do that.

-- 
Greg


More information about the cython-devel mailing list