diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-07-18 14:46:24 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-07-20 13:15:58 +0200 |
commit | 7afb093dd77f0ed9a1b4145d2d279810aba411c7 (patch) | |
tree | dd302828d9a45cc8dff301cc9769f2cb5fdeb236 /tests/auto/other/qobjectrace | |
parent | 87fabf3e4b7a5ccc00a7b76b4098e2174e4514d8 (diff) |
QtConcurrent::ReduceKernel: fix race conditions
resultsMapSize is modified inside the runReduce() method, and the
writes are protected via mutex lock. However, reads of resultsMapSize
through shouldThrottle()/shouldStartThread() (that can be called by
multiple threads) are done without a lock. Added the missing locks.
Task-number: QTBUG-104787
Pick-to: 6.4 6.3 6.2 5.15
Change-Id: I700e7b66e67025bc7f570bc8ad69409b82675049
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'tests/auto/other/qobjectrace')
0 files changed, 0 insertions, 0 deletions