Skip to content

Simplify full thread safe Python logic

Marcus D. Hanwell requested to merge mhanwell/vtk:python-gil-3-7 into master

The code is already protected by a static bool, and so the secondary check on whether threads had been initialized previously seems redundant. Python 3.7 changed behavior such that Py_Initialize and other similar functions (Py_InitializeEx) initalize the GIL, causing PyEval_SaveThread to never be called.

Merge request reports