summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-12-10 13:17:23 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2022-12-10 13:23:50 +0100
commit33a2735a8a6e04a7f7a739c036cfbbc655e2b286 (patch)
tree6010ff655879c6cfd475c1198854d1c1da325397 /dev-qt/qtconcurrent
parentdev-qt/qtwayland: Fix frame sync w/ to unprotected multithread access (diff)
downloadgentoo-33a2735a8a6e04a7f7a739c036cfbbc655e2b286.tar.gz
gentoo-33a2735a8a6e04a7f7a739c036cfbbc655e2b286.tar.bz2
gentoo-33a2735a8a6e04a7f7a739c036cfbbc655e2b286.zip
dev-qt/qtconcurrent: Drop obsolete patch
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-qt/qtconcurrent')
-rw-r--r--dev-qt/qtconcurrent/files/qtconcurrent-5.15.5-fix-race-conditions.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/dev-qt/qtconcurrent/files/qtconcurrent-5.15.5-fix-race-conditions.patch b/dev-qt/qtconcurrent/files/qtconcurrent-5.15.5-fix-race-conditions.patch
deleted file mode 100644
index c16da19a507d..000000000000
--- a/dev-qt/qtconcurrent/files/qtconcurrent-5.15.5-fix-race-conditions.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 33ed9a414da190ffa8099856901df792ff9150d5 Mon Sep 17 00:00:00 2001
-From: Sona Kurazyan <sona.kurazyan@qt.io>
-Date: Mon, 18 Jul 2022 14:46:24 +0200
-Subject: [PATCH] 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>
-(cherry picked from commit 7afb093dd77f0ed9a1b4145d2d279810aba411c7)
----
- src/concurrent/qtconcurrentreducekernel.h | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/concurrent/qtconcurrentreducekernel.h b/src/concurrent/qtconcurrentreducekernel.h
-index 8f9a938952..a98dedef2e 100644
---- a/src/concurrent/qtconcurrentreducekernel.h
-+++ b/src/concurrent/qtconcurrentreducekernel.h
-@@ -212,11 +212,13 @@ public:
-
- inline bool shouldThrottle()
- {
-+ std::lock_guard<QMutex> locker(mutex);
- return (resultsMapSize > (ReduceQueueThrottleLimit * threadCount));
- }
-
- inline bool shouldStartThread()
- {
-+ std::lock_guard<QMutex> locker(mutex);
- return (resultsMapSize <= (ReduceQueueStartLimit * threadCount));
- }
- };
---
-GitLab
-