qt5base-lts/tests/auto/concurrent
Sona Kurazyan a6e1f67937 Fix QtConcurrent algorithms to work with temporary sequences
QtConcurrent algorithms are making an internal copy of the passed
sequence, to make sure it won't be destroyed before the execution
is finished. However, they were using iterators of the originally
passed sequence. So, if the original sequence is deleted, QtConcurrent
algorithms would use invalid iterators to a deleted sequence. This
might work with Qt containers thanks to implicit-sharing, but with
other containers will lead to unexpected results. Fixed them to work
on the internal copy of the original sequence.

Change-Id: I1d68692ed9746223c85f51bb05977bc1443b681d
Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
2020-09-28 15:48:17 +02:00
..
qtconcurrentfilter Fix QtConcurrent algorithms to work with temporary sequences 2020-09-28 15:48:17 +02:00
qtconcurrentiteratekernel CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtconcurrentmap Fix QtConcurrent algorithms to work with temporary sequences 2020-09-28 15:48:17 +02:00
qtconcurrentmedian CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtconcurrentrun CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtconcurrenttask CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtconcurrentthreadengine CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
CMakeLists.txt QtConcurrent: add fluent interface to configure a task before run 2020-03-29 20:44:32 +01:00
concurrent.pro QtConcurrent: add fluent interface to configure a task before run 2020-03-29 20:44:32 +01:00