diff options
author | Gustavo J. A. M. Carneiro <gcarneiro@src.gnome.org> | 2004-08-04 14:52:52 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gcarneiro@src.gnome.org> | 2004-08-04 14:52:52 +0000 |
commit | 272e668c19e45ad9f00312f89077d75bd74646c1 (patch) | |
tree | e0d2de911e9112e2332e9c985ce31b50af04238f /gobject/pygflags.c | |
parent | e3135078a867a0dcd44647a480d990210e7496c2 (diff) | |
download | pygobject-272e668c19e45ad9f00312f89077d75bd74646c1.tar.gz pygobject-272e668c19e45ad9f00312f89077d75bd74646c1.tar.xz pygobject-272e668c19e45ad9f00312f89077d75bd74646c1.zip |
make threading runtime optional
Diffstat (limited to 'gobject/pygflags.c')
-rw-r--r-- | gobject/pygflags.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gobject/pygflags.c b/gobject/pygflags.c index ca6eec0..381a1dd 100644 --- a/gobject/pygflags.c +++ b/gobject/pygflags.c @@ -195,7 +195,7 @@ pyg_flags_add (PyObject * module, g_return_val_if_fail(typename != NULL, NULL); g_return_val_if_fail(g_type_is_a(gtype, G_TYPE_FLAGS), NULL); - state = PyGILState_Ensure(); + state = pyg_gil_state_ensure(); instance_dict = PyDict_New(); stub = PyObject_CallFunction((PyObject *)&PyType_Type, "s(O)O", @@ -204,7 +204,7 @@ pyg_flags_add (PyObject * module, Py_DECREF(instance_dict); if (!stub) { PyErr_SetString(PyExc_RuntimeError, "can't create const"); - PyGILState_Release(state); + pyg_gil_state_release(state); } PyDict_SetItemString(((PyTypeObject *)stub)->tp_dict, @@ -246,7 +246,7 @@ pyg_flags_add (PyObject * module, g_type_class_unref(eclass); - PyGILState_Release(state); + pyg_gil_state_release(state); return stub; } |