mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
Make sure the GIL is held on cleanup
This commit is contained in:
parent
32f291c66e
commit
73822401f1
@ -13,6 +13,10 @@
|
||||
|
||||
#include "../libsrc/interface/writeuser.hpp"
|
||||
|
||||
#ifdef NETGEN_PYTHON
|
||||
#include <core/python_ngcore.hpp>
|
||||
#endif
|
||||
|
||||
namespace netgen
|
||||
{
|
||||
DLL_HEADER extern Flags parameters;
|
||||
@ -251,6 +255,10 @@ int main(int argc, char ** argv)
|
||||
// start event-loop
|
||||
Tk_MainLoop();
|
||||
Tcl_DeleteInterp (myinterp);
|
||||
#ifdef NETGEN_PYTHON
|
||||
py::gil_scoped_acquire ensure_gil;
|
||||
#endif
|
||||
|
||||
Tcl_Exit(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user