aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/referenceexamples/extended/main.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-03-14 09:38:00 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-03-25 19:16:49 +0100
commit4299d0bb92745fc377b8df0fb246f3081465a195 (patch)
tree02ee0b32153162f47be83907ef1a7215a7d5d8a7 /examples/qml/referenceexamples/extended/main.cpp
parent75b6be77889227e7a5f5ad883557a0d54c394bc5 (diff)
Fix deadlock in long-running particle system
2^30 was used as a "big number" sentinel and assumed to always be higher than the particle system's age. But a particle system running for a bit over 12 days will hit this limit. The result was that such particle systems would never exit the loop in recycle() and deadlock. Instead we add the check for an empty heap to the loop condition itself. Fixes: QTBUG-123111 Change-Id: I6bf9c5a27271e74f56728c0ad7bdabdd87e028b2 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 9c54252914634a6756b39261b027b48b96c6ea7b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit fd53ed433a18a369984d87614921bbeed92997b1) (cherry picked from commit c34daa62e6efad6566fab478c3f937030f1828fb) (cherry picked from commit 2a389f2575219de6d8d264a6e244a0420ee92b87) (cherry picked from commit 4ca3d4a24a39547163046766989255f199c51b84)
Diffstat (limited to 'examples/qml/referenceexamples/extended/main.cpp')
0 files changed, 0 insertions, 0 deletions