Skip to content

Commit 75c9113

Browse files
committed
Declare GIL not used
1 parent 798fa1a commit 75c9113

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/zlib_ng/zlib_ngmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2969,6 +2969,9 @@ PyMODINIT_FUNC
29692969
PyInit_zlib_ng(void)
29702970
{
29712971
PyObject *m, *ver;
2972+
#ifdef Py_GIL_DISABLED
2973+
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
2974+
#endif
29722975
m = PyModule_Create(&zlibmodule);
29732976
if (m == NULL) {
29742977
return NULL;

0 commit comments

Comments
 (0)