diff options
author | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> | 2021-09-14 16:02:26 +0200 |
---|---|---|
committer | Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> | 2021-09-15 15:46:53 +0200 |
commit | 1afd562b0b0bbba02575aa79601f0fae555cfa19 (patch) | |
tree | 34013cb564256f1e17c4333e804c6bc9b68814f5 /src/gui/kernel/qplatformdrag.h | |
parent | 797039eb20fcdff0c533e16ea35d3524edc6ae25 (diff) |
QThreadPool: Fix restarting of expired threads
Ensure that expired threads have actually finished before attempting
to restart them. Calling start() on a thread that is not yet finished
does nothing.
Add a regression test into tst_qthreadpool that attempts to trigger
reuse of expired threads and verifies that all submitted tasks
execute.
Fixes: QTBUG-72872
Pick-to: 6.2
Change-Id: I2109b628b8a4e91491115dc56aebf3eb249646b5
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/kernel/qplatformdrag.h')
0 files changed, 0 insertions, 0 deletions