Skip to content

Commit

Permalink
Make PyMutex static and get rid of initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
lysnikolaou committed Oct 25, 2024
1 parent 7999da3 commit bb3515d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct {

static FT_Library library;
#ifdef Py_GIL_DISABLED
PyMutex ft_library_mutex;
static PyMutex ft_library_mutex;
#endif

typedef struct {
Expand Down Expand Up @@ -1648,7 +1648,6 @@ PyInit__imagingft(void) {
}

#ifdef Py_GIL_DISABLED
ft_library_mutex = (PyMutex){0};
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
#endif

Expand Down

0 comments on commit bb3515d

Please sign in to comment.