diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-05-28 14:06:56 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-05-28 15:12:41 +0200 |
commit | eb5d8efc5156f8f7687e64defcbb2ed0f6911fc0 (patch) | |
tree | 585cb5f94c194c2e2772c8bda9948fb9bceacbbe /src/concurrent/qtconcurrentfilterkernel.h | |
parent | 9aea74f2c6dac24a841554fdd47798e2f75f395c (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/qtconcurrentfilterkernel.h')
-rw-r--r-- | src/concurrent/qtconcurrentfilterkernel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/concurrent/qtconcurrentfilterkernel.h b/src/concurrent/qtconcurrentfilterkernel.h index 90d5b9aa77..5f9094f6b6 100644 --- a/src/concurrent/qtconcurrentfilterkernel.h +++ b/src/concurrent/qtconcurrentfilterkernel.h @@ -93,7 +93,7 @@ public: sequence(_sequence), keep(_keep), reduce(_reduce), - reducer(OrderedReduce) + reducer(pool, OrderedReduce) { } bool runIteration(typename Sequence::const_iterator it, int index, T *) override @@ -173,7 +173,7 @@ public: ReduceFunctor _reduce, ReduceOptions reduceOption) : IterateKernelType(pool, begin, end), reducedResult(), keep(_keep), reduce(_reduce), - reducer(reduceOption) + reducer(pool, reduceOption) { } FilteredReducedKernel(QThreadPool *pool, Iterator begin, Iterator end, KeepFunctor _keep, @@ -183,7 +183,7 @@ public: reducedResult(std::forward<ReducedResultType>(initialValue)), keep(_keep), reduce(_reduce), - reducer(reduceOption) + reducer(pool, reduceOption) { } |