Allow releasing the GIL in nogil functions (GH-4318)
Also adds a check whether we have the GIL before doing so. This is important because Py_UNBLOCK_THREADS is documented as unsafe if we don't hold the GIL. Closes https://github.com/cython/cython/issues/4137
Showing
Please register or sign in to comment