new question:
How do i get this to release the gil:
when i change the cython module to the following Cython compilation fails
claiming I'm calling a gil required function:
cdef extern from "cxtypes.h":
ctypedef struct IplImage:
pass
cdef extern from "highgui.h":
cdef IplImage* cvLoadImage(char* file, int iscolor)
cdef int cvNamedWindow(char* name, int flag)
cdef void cvShowImage(char* name, IplImage* img)
cdef int cvWaitKey(int delay)
cdef int test(char* file) nogil:
cdef IplImage* img = cvLoadImage(file, 1)
cvNamedWindow("Test", 1)
cvShowImage("Test", img)
cvWaitKey(0)
return 0
def myinterface(char* file):
with nogil:
test(file)
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev