mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Make PyMutex static and get rid of initialization
This commit is contained in:
		
							parent
							
								
									7999da38a7
								
							
						
					
					
						commit
						bb3515d649
					
				|  | @ -83,7 +83,7 @@ struct { | ||||||
| 
 | 
 | ||||||
|     static FT_Library library; |     static FT_Library library; | ||||||
| #ifdef Py_GIL_DISABLED | #ifdef Py_GIL_DISABLED | ||||||
| PyMutex ft_library_mutex; | static PyMutex ft_library_mutex; | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| typedef struct { | typedef struct { | ||||||
|  | @ -1648,7 +1648,6 @@ PyInit__imagingft(void) { | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| #ifdef Py_GIL_DISABLED | #ifdef Py_GIL_DISABLED | ||||||
|     ft_library_mutex = (PyMutex){0}; |  | ||||||
|     PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED); |     PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED); | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user