summaryrefslogtreecommitdiffstats
path: root/gobject/pygmaincontext.c
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gcarneiro@src.gnome.org>2004-08-04 14:52:52 +0000
committerGustavo J. A. M. Carneiro <gcarneiro@src.gnome.org>2004-08-04 14:52:52 +0000
commit272e668c19e45ad9f00312f89077d75bd74646c1 (patch)
treee0d2de911e9112e2332e9c985ce31b50af04238f /gobject/pygmaincontext.c
parente3135078a867a0dcd44647a480d990210e7496c2 (diff)
downloadpygobject-272e668c19e45ad9f00312f89077d75bd74646c1.tar.gz
pygobject-272e668c19e45ad9f00312f89077d75bd74646c1.tar.xz
pygobject-272e668c19e45ad9f00312f89077d75bd74646c1.zip
make threading runtime optional
Diffstat (limited to 'gobject/pygmaincontext.c')
-rw-r--r--gobject/pygmaincontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gobject/pygmaincontext.c b/gobject/pygmaincontext.c
index a3c25f1..64153e3 100644
--- a/gobject/pygmaincontext.c
+++ b/gobject/pygmaincontext.c
@@ -50,9 +50,9 @@ _wrap_g_main_context_iteration (PyGMainContext *self, PyObject *args)
&may_block))
return NULL;
- Py_BEGIN_ALLOW_THREADS;
+ pyg_begin_allow_threads;
ret = g_main_context_iteration(self->context, may_block);
- Py_END_ALLOW_THREADS;
+ pyg_end_allow_threads;
return PyBool_FromLong(ret);
}