[vtk-developers] Adding a GIL ensure call before all call to python

Mathieu Westphal mathieu.westphal at kitware.com
Fri Jul 3 05:56:13 EDT 2015


A client requesting us to apply a patch to paraview so every single call to
python
(PyRun, Py_Decref, PyImport, PyObject, PyString... ) to be surrounded by
PyGILState_Ensure
PyGILState_Release

if VTK_NO_PYTHON_THREADS is not defined.

is this acceptable ? some python calls are already done like that, see
vtkPythonUtil.cxx.

This option is defined to 1 by default.


Mathieu Westphal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150703/23009bff/attachment.html>


More information about the vtk-developers mailing list