mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Call PyUnstable_Module_SetGIL() to indicate support of running with GIL disabled
This commit is contained in:
		
							parent
							
								
									613fced92c
								
							
						
					
					
						commit
						69f967301d
					
				| 
						 | 
					@ -4448,5 +4448,9 @@ PyInit__imaging(void) {
 | 
				
			||||||
        return NULL;
 | 
					        return NULL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef Py_GIL_DISABLED
 | 
				
			||||||
 | 
					    PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return m;
 | 
					    return m;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1538,5 +1538,9 @@ PyInit__imagingcms(void) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    PyDateTime_IMPORT;
 | 
					    PyDateTime_IMPORT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef Py_GIL_DISABLED
 | 
				
			||||||
 | 
					    PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return m;
 | 
					    return m;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1576,5 +1576,9 @@ PyInit__imagingft(void) {
 | 
				
			||||||
        return NULL;
 | 
					        return NULL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef Py_GIL_DISABLED
 | 
				
			||||||
 | 
					    PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return m;
 | 
					    return m;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -290,5 +290,9 @@ PyInit__imagingmath(void) {
 | 
				
			||||||
        return NULL;
 | 
					        return NULL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef Py_GIL_DISABLED
 | 
				
			||||||
 | 
					    PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return m;
 | 
					    return m;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -269,5 +269,9 @@ PyInit__imagingmorph(void) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    m = PyModule_Create(&module_def);
 | 
					    m = PyModule_Create(&module_def);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef Py_GIL_DISABLED
 | 
				
			||||||
 | 
					    PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return m;
 | 
					    return m;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -62,5 +62,10 @@ PyInit__imagingtk(void) {
 | 
				
			||||||
        Py_DECREF(m);
 | 
					        Py_DECREF(m);
 | 
				
			||||||
        return NULL;
 | 
					        return NULL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef Py_GIL_DISABLED
 | 
				
			||||||
 | 
					    PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return m;
 | 
					    return m;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1005,5 +1005,9 @@ PyInit__webp(void) {
 | 
				
			||||||
        return NULL;
 | 
					        return NULL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef Py_GIL_DISABLED
 | 
				
			||||||
 | 
					    PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return m;
 | 
					    return m;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user