Avoid function-local statics that call Python code to avoid deadlocks with GIL

This commit is contained in:
Petr Mitrichev 2018-06-28 14:27:52 +02:00
commit d956081fd3
2 changed files with 49 additions and 9 deletions

View file

@ -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);
%}