summaryrefslogtreecommitdiffstats
path: root/src/concurrent/qtconcurrentreducekernel.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/qtconcurrentreducekernel.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/qtconcurrentreducekernel.h')
-rw-r--r--src/concurrent/qtconcurrentreducekernel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/concurrent/qtconcurrentreducekernel.h b/src/concurrent/qtconcurrentreducekernel.h
index 4c023ebb4a..9a9027c9d0 100644
--- a/src/concurrent/qtconcurrentreducekernel.h
+++ b/src/concurrent/qtconcurrentreducekernel.h
@@ -140,9 +140,9 @@ class ReduceKernel
}
public:
- ReduceKernel(ReduceOptions _reduceOptions)
+ ReduceKernel(QThreadPool *pool, ReduceOptions _reduceOptions)
: reduceOptions(_reduceOptions), progress(0), resultsMapSize(0),
- threadCount(QThreadPool::globalInstance()->maxThreadCount())
+ threadCount(pool->maxThreadCount())
{ }
void runReduce(ReduceFunctor &reduce,