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:
parent
55d3c6ef4e
commit
2f726de360
2 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue