aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2
blob: 0c64d1b2c6e5e0951675ad9b22294db4a10741c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
tree 40a7680fd968bfb6c27f777b90d3a6aadd058db9
parent 8dfeddb3a679d2f6fdb1ae01f8eee77c9bec7edd
author Pankaj Pandey <pankaj86@gmail.com> 1398954483 +0530
committer John Ehresman <jpe@wingware.com> 1404777665 +0200

PYSIDE-164: Fix possible deadlock on signal connect/emit

Signal connect/emit acquire a lock on the QObject, and can
happen from python code (which has acquired the GIL) or
internal QtCode (without acquiring the GIL).
So we always need to release the GIL to prevent out-of-order
acquisition of the locks causing deadlock.

Change-Id: I1cf47a73c2b60627e322d8ef3fa4c3efdebd4c02
Reviewed-by: John Ehresman <jpe@wingware.com>