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

2013-05-08 Thread Greg Ewing
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 'w

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

2013-05-08 Thread Stefan Behnel
Hi, this question is better suited for the cython-users mailing list. Ryan Pessa, 08.05.2013 20:09: > I ran into an interesting problem today. It doesn't seem like Cython > respects the `nogil` statement on extern cpp functions. I am trying to use > a blocking I/O function, and am running it in s

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

2013-05-08 Thread Ryan Pessa
Hello, I ran into an interesting problem today. It doesn't seem like Cython respects the `nogil` statement on extern cpp functions. I am trying to use a blocking I/O function, and am running it in secondary thread so I can use another library function to cancel it. I have tried it both on the `ex