File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -406,6 +406,7 @@ if (NOT PYZMQ_BACKEND)
406406 set (PYZMQ_BACKEND "cffi" )
407407 else ()
408408 set (PYZMQ_BACKEND "cython" )
409+ add_compile_definitions (CYTHON_USE_MODULE_STATE=1)
409410 endif ()
410411endif ()
411412
Original file line number Diff line number Diff line change 11# cython: language_level = 3str
22# cython: freethreading_compatible = True
3+ # cython: subinterpreters_compatible = own_gil
4+
35"""Cython backend for pyzmq"""
46
57# Copyright (C) PyZMQ Developers
4951 cfunc ,
5052 char ,
5153 declare ,
54+ exceptval ,
5255 inline ,
5356 nogil ,
5457 p_char ,
169172
170173@cfunc
171174@inline
172- @C . exceptval (- 1 )
175+ @exceptval (- 1 )
173176def _check_rc (rc : C .int , error_without_errno : bint = False ) -> C .int :
174177 """internal utility for checking zmq return condition
175178
@@ -1804,6 +1807,7 @@ def proxy_steerable(
18041807@cfunc
18051808@inline
18061809@nogil
1810+ @exceptval (check = False )
18071811def _mq_relay (
18081812 in_socket : p_void ,
18091813 out_socket : p_void ,
@@ -1887,6 +1891,7 @@ def _mq_relay(
18871891@cfunc
18881892@inline
18891893@nogil
1894+ @exceptval (check = False )
18901895def _mq_inline (
18911896 in_socket : p_void ,
18921897 out_socket : p_void ,
You can’t perform that action at this time.
0 commit comments