Updates SignalManager and GlobalReceiver to acquire the GIL before calling Python.

Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
This commit is contained in:
Marcelo Lira 2010-01-18 14:26:00 -03:00
commit 2f726de360
2 changed files with 4 additions and 0 deletions

View file

@ -37,6 +37,7 @@
#include <QDebug>
#include "signalmanager.h"
#include <autodecref.h>
#include <gilstate.h>
#include "typeresolver.h"
@ -168,6 +169,7 @@ int GlobalReceiver::qt_metacall(QMetaObject::Call call, int id, void** args)
return -1;
}
Shiboken::GilState gil;
int numArgs;
PyObject* retval = 0;
PyObject* callback = data->callback();