commit: 33a2735a8a6e04a7f7a739c036cfbbc655e2b286 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sat Dec 10 12:17:23 2022 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sat Dec 10 12:23:50 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33a2735a
dev-qt/qtconcurrent: Drop obsolete patch Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> .../qtconcurrent-5.15.5-fix-race-conditions.patch | 41 ---------------------- 1 file changed, 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 <[email protected]> -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 <[email protected]> -Reviewed-by: Marc Mutz <[email protected]> -(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 -
