summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSvenn-Arne Dragly <svenn-arne.dragly@qt.io>2017-09-20 09:28:27 +0200
committerSvenn-Arne Dragly <svenn-arne.dragly@qt.io>2017-11-16 12:42:44 +0000
commitce08318a46164172eaa72f4436cddf7f69ce9e1c (patch)
tree50cefb304ccec3852630bc85eca66ab6f4071dec /src
parentf6c9f0312888317c0cd6a85cd3f238bb4e0295c5 (diff)
Add QThreadPool autotest to detect stale threads after tryTake
This test makes sure that we do not introduce a regression where the threads exited the inner loop over the queue before the queue was empty. This was triggered by calling tryTake at least maxThreadCount times, which left the same number of null pointers in the queue and caused the inner loop to exit too soon for all the threads. Change-Id: I3a9d800149b88d09510ddc424667670b60f06a33 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions