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/pygmaincontext.c | |
| parent | e3135078a867a0dcd44647a480d990210e7496c2 (diff) | |
| download | pygobject-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.c | 4 |
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); } |
