[PySide] [shiboken6] allow-thread needed for Constructor ?

Friedemann Kleint Friedemann.Kleint at qt.io
Wed Nov 15 13:14:50 CET 2023


You can see that allow-thread is for example specified for the 
QMutexLocker constructor added for 
https://bugreports.qt.io/browse/PYSIDE-1271 at 
sources/pyside6/PySide6/QtCore/typesystem_core_common.xml:2397 and it is 
actually generated into the code. So, the GIL is held when calling a 
constructor from Python and it can be released.

Regards, Friedemann

Friedemann Kleint
The Qt Company GmbH

More information about the PySide mailing list