summaryrefslogtreecommitdiffstats
path: root/tests/auto/xml/sax
diff options
context:
space:
mode:
authorSvenn-Arne Dragly <svenn-arne.dragly@qt.io>2017-09-05 15:02:20 +0200
committerSvenn-Arne Dragly <svenn-arne.dragly@qt.io>2017-10-04 12:00:33 +0000
commitba423261cd9abedda8b732c82371515003d385ce (patch)
tree78c7a4997deaf6ae6e5b20e99f72c2f03e89f6c3 /tests/auto/xml/sax
parentd7c57fa68e7bfa1fcb1bca3bcc1ea3e3668167a9 (diff)
Improve performance in QThreadPool
When many runnables are executed, this improves the performance by not resizing the queue for each runnable, which was the case in the previous version, because of many calls to QVector::takeFirst(). Also add a test that makes sure tryTake() is safe to call and does not leave the queue in a bad state that tries to use nullptr entries. Change-Id: I608134ecfa9cfc03db4878dcbd6f9c1107e13e90 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/xml/sax')
0 files changed, 0 insertions, 0 deletions