}
static PyObject *
-PyCFuncPtr_call(PyObject *op, PyObject *inargs, PyObject *kwds)
+PyCFuncPtr_call_lock_held(PyObject *op, PyObject *inargs, PyObject *kwds)
{
PyObject *restype;
PyObject *converters;
outmask, inoutmask, numretvals);
}
+static PyObject *
+PyCFuncPtr_call(PyObject *op, PyObject *inargs, PyObject *kwds)
+{
+ PyObject *result;
+ Py_BEGIN_CRITICAL_SECTION(op);
+ result = PyCFuncPtr_call_lock_held(op, inargs, kwds);
+ Py_END_CRITICAL_SECTION();
+ return result;
+}
+
static int
PyCFuncPtr_traverse(PyObject *op, visitproc visit, void *arg)
{