summaryrefslogtreecommitdiffstats
path: root/src/concurrent
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-05-28 14:15:54 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-05-28 15:12:56 +0200
commitbd877e76a80ca7522f2e1a912508e884dda4c14a (patch)
tree2dd73ca14c79cc1518d6e00f2f52c67104bade38 /src/concurrent
parenteb5d8efc5156f8f7687e64defcbb2ed0f6911fc0 (diff)
Make threadCount a const member of ReduceKernel
Change-Id: I8e75263d3e02a6e6a20520ebecfdb4e40b562bbf Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/concurrent')
-rw-r--r--src/concurrent/qtconcurrentreducekernel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/concurrent/qtconcurrentreducekernel.h b/src/concurrent/qtconcurrentreducekernel.h
index 9a9027c9d0..35e9ca22b1 100644
--- a/src/concurrent/qtconcurrentreducekernel.h
+++ b/src/concurrent/qtconcurrentreducekernel.h
@@ -108,7 +108,8 @@ class ReduceKernel
const ReduceOptions reduceOptions;
QMutex mutex;
- int progress, resultsMapSize, threadCount;
+ int progress, resultsMapSize;
+ const int threadCount;
ResultsMap resultsMap;
bool canReduce(int begin) const