MCPcopy Create free account
hub / github.com/Kitware/VTK / Finalize

Method Finalize

Utilities/PythonInterpreter/vtkPythonInterpreter.cxx:586–598  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

584
585//------------------------------------------------------------------------------
586void vtkPythonInterpreter::Finalize()
587{
588 if (Py_IsInitialized() != 0)
589 {
590 NotifyInterpreters(vtkCommand::ExitEvent);
591 vtkPythonScopeGilEnsurer gilEnsurer(false, true);
592#ifdef vtkPythonInterpreter_USE_DIRECTORY_COOKIE
593 CloseDLLDirectoryCookie();
594#endif
595 // Py_Finalize will take care of releasing gil
596 Py_Finalize();
597 }
598}
599
600//------------------------------------------------------------------------------
601void vtkPythonInterpreter::SetProgramName(const char* programname)

Calls 2

NotifyInterpretersFunction · 0.85
CloseDLLDirectoryCookieFunction · 0.85

Tested by

no test coverage detected