summaryrefslogtreecommitdiffstats
path: root/src/concurrent/qtconcurrentmapkernel.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-05-28 14:06:56 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-05-28 15:12:41 +0200
commiteb5d8efc5156f8f7687e64defcbb2ed0f6911fc0 (patch)
tree585cb5f94c194c2e2772c8bda9948fb9bceacbbe /src/concurrent/qtconcurrentmapkernel.h
parent9aea74f2c6dac24a841554fdd47798e2f75f395c (diff)
Pass the thread pool into ReduceKernel
This was overlooked when enabling setting a custom thread pool for various concurrent methods. Fixes: QTBUG-53465 Change-Id: I189a7776fa02bbc3e995538cc154a7246ad1ad7a Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/concurrent/qtconcurrentmapkernel.h')
-rw-r--r--src/concurrent/qtconcurrentmapkernel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/concurrent/qtconcurrentmapkernel.h b/src/concurrent/qtconcurrentmapkernel.h
index e882dbfa75..11be262628 100644
--- a/src/concurrent/qtconcurrentmapkernel.h
+++ b/src/concurrent/qtconcurrentmapkernel.h
@@ -103,7 +103,7 @@ public:
MappedReducedKernel(QThreadPool *pool, Iterator begin, Iterator end, MapFunctor _map,
ReduceFunctor _reduce, ReduceOptions reduceOptions)
: IterateKernel<Iterator, ReducedResultType>(pool, begin, end), reducedResult(),
- map(_map), reduce(_reduce), reducer(reduceOptions)
+ map(_map), reduce(_reduce), reducer(pool, reduceOptions)
{ }
MappedReducedKernel(QThreadPool *pool, Iterator begin, Iterator end, MapFunctor _map,
@@ -113,7 +113,7 @@ public:
reducedResult(std::forward<ReducedResultType>(initialValue)),
map(_map),
reduce(_reduce),
- reducer(reduceOptions)
+ reducer(pool, reduceOptions)
{
}