Skip to content

Commit

Permalink
Indicate support of running with GIL disabled, as per python-pillow#8216
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 5, 2025
1 parent 4508f37 commit 0f0a8dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/_avif.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,5 +940,9 @@ PyInit__avif(void) {
return NULL;
}

#ifdef Py_GIL_DISABLED
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
#endif

return m;
}

0 comments on commit 0f0a8dc

Please sign in to comment.