itom
|
Guard for a shared pointer of a PyObject. More...
#include <pythonSharedPointerGuard.h>
Static Private Member Functions | |
static void | safeDecrefPyObject2Async (PyObject *obj) |
user-defined deleter for the QSharedPointer, released by createPythonSharedPointer | |
template<typename _Tp > | |
static void | deleter (_Tp *sharedPointerData) |
Static Private Attributes | |
static QHash< void *, PyObject * > | m_hashTable = QHash<void*, PyObject*>() |
Guard for a shared pointer of a PyObject.
|
staticprivate |
user-defined deleter for the QSharedPointer, released by createPythonSharedPointer
< if the caller of the deleter currently does not own the Python GIL, this method is called to safely decrement the refcount of the owner PyObject. This is done by a worker thread, that tries to acquire the GIL, decrease the refcount and release the GIL.