File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ cdef void __uv_close_handle_cb(uv.uv_handle_t* handle) with gil:
319
319
cdef void __close_all_handles(Loop loop):
320
320
uv.uv_walk(loop.uvloop, __uv_walk_close_all_handles_cb, < void * > loop) # void
321
321
322
- cdef void __uv_walk_close_all_handles_cb(uv.uv_handle_t* handle, void * arg):
322
+ cdef void __uv_walk_close_all_handles_cb(uv.uv_handle_t* handle, void * arg) with gil :
323
323
cdef:
324
324
Loop loop = < Loop> arg
325
325
UVHandle h
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ from posix.types cimport gid_t, uid_t
4
4
from . cimport system
5
5
6
6
7
- cdef extern from " ../vendor/libuv/include/uv.h" :
7
+ cdef extern from " ../vendor/libuv/include/uv.h" nogil :
8
8
cdef int UV_EACCES
9
9
cdef int UV_EAGAIN
10
10
cdef int UV_EALREADY
@@ -179,7 +179,7 @@ cdef extern from "../vendor/libuv/include/uv.h":
179
179
const char * uv_err_name(int err)
180
180
181
181
# no "with gil" for uv_walk_cb, as uv_walk doesn't release GIL
182
- ctypedef void (* uv_walk_cb)(uv_handle_t* handle, void * arg)
182
+ ctypedef void (* uv_walk_cb)(uv_handle_t* handle, void * arg) with gil
183
183
184
184
ctypedef void (* uv_close_cb)(uv_handle_t* handle) with gil
185
185
ctypedef void (* uv_idle_cb)(uv_idle_t* handle) with gil
You can’t perform that action at this time.
0 commit comments