From 52f29458d7d6cb379d28d84021819516723d9169 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 18 Jun 2020 09:53:06 +0200 Subject: pthreads: Try to abandon the GIL in case a thread was terminated When terminating a thread using QThread::terminate() via (pthread_cancel(), QThread::run() is aborted and the lock is released, but ~GilState() is still executed for some reason. Add a cancel handler to the thread which tells GilState to abandon the lock. Fixes: PYSIDE-1282 Change-Id: I70abd42b5a2afd49aaa8cc5e8be0a92ed63f49d3 Reviewed-by: Cristian Maureira-Fredes --- sources/pyside2/PySide2/QtCore/typesystem_core_common.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sources/pyside2/PySide2/QtCore/typesystem_core_common.xml') diff --git a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml index 26193a0aa..8294947ed 100644 --- a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml +++ b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml @@ -1460,9 +1460,15 @@ + - + + + + -- cgit v1.2.3