From 272e668c19e45ad9f00312f89077d75bd74646c1 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Wed, 4 Aug 2004 14:52:52 +0000 Subject: make threading runtime optional --- gobject/pygmaincontext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gobject/pygmaincontext.c') 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); } -- cgit