Hi, > 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:
All functions, even external ones, that can be run without the gil need the "nogil" decorator on the end or cython assumes it needs the gil. E.g. > cdef extern from "highgui.h": > cdef IplImage* cvLoadImage(char* file, int iscolor) nogil > cdef int cvNamedWindow(char* name, int flag) nogil ... --Hoyt ++++++++++++++++++++++++++++++++++++++++++++++++ + Hoyt Koepke + University of Washington Department of Statistics + http://www.stat.washington.edu/~hoytak/ + [email protected] ++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
