summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/mockplugins
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-06-02 17:28:51 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-06-05 15:11:36 +0200
commitc450285c415f6b3ee528cbb3df35dedce157ffff (patch)
tree523d70b32090e62e2212e3acbd7b6ec6deb339aa /tests/auto/cmake/mockplugins
parentf67d89ebde22bdef6d82f7a613f7f0fac794dd45 (diff)
Windows: Don't terminate threads in Qt
Terminating a thread that we don't have full control over might leave mutexes or critical sections locked, ending up with an application that can't allocate memory or open new windows. Also, if terminating of the thread would fail (which the code tried to handle), then deleting the QThread anyway would have triggered the assertion that we don't delete a running thread in ~QThread. So simplify this code: wait simply returns true if the thread isn't running anymore, no need for the double-check. Leave the thread running and leaking if it is stuck somewhere in Windows APIs while executing the native dialog. Fixes: QTBUG-103984 Change-Id: I34aa42cbde7c769a58c14bf524781cf3abd13b70 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/cmake/mockplugins')
0 files changed, 0 insertions, 0 deletions