diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-05-31 17:09:16 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-07 13:23:44 +0000 |
commit | 7429f6f366172bf2e1e3c97cc3ebbc4be61b0cde (patch) | |
tree | 0cf88e16f903ee797d35a9f7a0284962d0b8343c /examples/quick/window/AllScreens.qml | |
parent | ee295affc6210cb71a242f7e119e7a4f95b75fc3 (diff) |
Fix workflow for shutting down busy type loader threads
We need to set the shutdown flag right away in order to prevent further
thread events from getting scheduled. Those might lead to deadlocks. On
the loader thread's side, however, we need to process the existing
events before we process the shutdown flag, in order not to leak the
events. After we are done with this routine, the thread will finish by
itself. We don't need to wait on our mutex anymore. It's enough to wait
on the thread itself.
Task-number: QTBUG-75777
Change-Id: Id0afcb492d84617c78ff3bf94d0cc402aef2faa4
(cherry-picked from commit 0521b55f201299ee9f031f61d5bf8f2be18cf8c5)
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Igor Kushnir <igorkuo@gmail.com>
Diffstat (limited to 'examples/quick/window/AllScreens.qml')
0 files changed, 0 insertions, 0 deletions