summaryrefslogtreecommitdiff
path: root/gi/pygspawn.c
diff options
context:
space:
mode:
authorChristoph Reiter <creiter@src.gnome.org>2017-03-21 20:23:13 +0100
committerChristoph Reiter <creiter@src.gnome.org>2017-03-22 09:27:54 +0100
commitc1ad1129b42c7938662422bb33990026572866d0 (patch)
tree16eae8b53e6492792876ab4b7aa1238866c1fbdf /gi/pygspawn.c
parent16e187636d186d4c128288efb032c5ddd69569b3 (diff)
downloadpygobject-c1ad1129b42c7938662422bb33990026572866d0.tar.gz
Remove pyglib_gil_state_ensure/pyglib_gil_state_release
Use PyGILState_Ensure/PyGILState_Release instead. https://bugzilla.gnome.org/show_bug.cgi?id=699440
Diffstat (limited to 'gi/pygspawn.c')
-rw-r--r--gi/pygspawn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gi/pygspawn.c b/gi/pygspawn.c
index c66c50f0..3806967a 100644
--- a/gi/pygspawn.c
+++ b/gi/pygspawn.c
@@ -76,7 +76,7 @@ _pyg_spawn_async_callback(gpointer user_data)
PyGILState_STATE gil;
data = (struct _PyGChildSetupData *) user_data;
- gil = pyglib_gil_state_ensure();
+ gil = PyGILState_Ensure();
if (data->data)
retval = PyObject_CallFunction(data->func, "O", data->data);
else
@@ -88,7 +88,7 @@ _pyg_spawn_async_callback(gpointer user_data)
Py_DECREF(data->func);
Py_XDECREF(data->data);
g_slice_free(struct _PyGChildSetupData, data);
- pyglib_gil_state_release(gil);
+ PyGILState_Release(gil);
}
PyObject *