Make PyMutex static and get rid of initialization

This commit is contained in:
Lysandros Nikolaou 2024-10-25 17:32:29 +02:00
parent 7999da38a7
commit bb3515d649
No known key found for this signature in database
GPG Key ID: 43E92D11D08F5F29

View File

@ -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 {
@ -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