Skip to content

Commit 0f0a8dc

Browse files
committed
Indicate support of running with GIL disabled, as per python-pillow#8216
1 parent 4508f37 commit 0f0a8dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/_avif.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,5 +940,9 @@ PyInit__avif(void) {
940940
return NULL;
941941
}
942942

943+
#ifdef Py_GIL_DISABLED
944+
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
945+
#endif
946+
943947
return m;
944948
}

0 commit comments

Comments
 (0)