Avoid function-local statics that call Python code to avoid deadlocks with GIL
This commit is contained in:
parent
6f2399e86d
commit
d956081fd3
2 changed files with 49 additions and 9 deletions
|
|
@ -431,6 +431,11 @@ SWIG_init(void) {
|
|||
SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
|
||||
#endif
|
||||
|
||||
SWIG_Py_None_global_Init();
|
||||
SwigPyObject_type_global_Init();
|
||||
SwigPyPacked_type_global_Init();
|
||||
SWIG_Python_TypeCache_global_Init();
|
||||
|
||||
SWIG_InstallConstants(d,swig_const_table);
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue