Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package qt6-tasktree for openSUSE:Factory 
checked in at 2026-11-30 14:25:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qt6-tasktree (Old)
 and      /work/SRC/openSUSE:Factory/.qt6-tasktree.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qt6-tasktree"

Mon Nov 30 14:25:07 2026 rev:5 rq:1400928 version:6.12.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/qt6-tasktree/qt6-tasktree.changes        
2026-10-18 19:23:19.227749576 +0200
+++ /work/SRC/openSUSE:Factory/.qt6-tasktree.new.1340718/qt6-tasktree.changes   
2026-11-30 14:27:03.281585205 +0100
@@ -1,0 +2,6 @@
+Tue Nov 24 13:37:54 UTC 2026 - Christophe Marin <[email protected]>
+
+- Update to 6.12.1
+  https://www.qt.io/blog/qt-6.12.1-released
+
+-------------------------------------------------------------------

Old:
----
  qttasktree-everywhere-src-6.12.0.tar.xz

New:
----
  qttasktree-everywhere-src-6.12.1.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ qt6-tasktree.spec ++++++
--- /var/tmp/diff_new_pack.yf0NrV/_old  2026-11-30 14:27:04.885653154 +0100
+++ /var/tmp/diff_new_pack.yf0NrV/_new  2026-11-30 14:27:04.887653238 +0100
@@ -16,7 +16,7 @@
 #
 
 
-%define real_version 6.12.0
+%define real_version 6.12.1
 %define short_version 6.12
 %define tar_name qttasktree-everywhere-src
 %define tar_suffix %{nil}
@@ -27,7 +27,7 @@
 %endif
 #
 Name:           qt6-tasktree%{?pkg_suffix}
-Version:        6.12.0
+Version:        6.12.1
 Release:        0
 Summary:        Generic framework for automatic management of asynchronous 
tasks
 License:        GPL-2.0-only OR LGPL-3.0-only OR GPL-3.0-only

++++++ qttasktree-everywhere-src-6.12.0.tar.xz -> 
qttasktree-everywhere-src-6.12.1.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qttasktree-everywhere-src-6.12.0/.cmake.conf 
new/qttasktree-everywhere-src-6.12.1/.cmake.conf
--- old/qttasktree-everywhere-src-6.12.0/.cmake.conf    2026-09-26 
12:11:26.000000000 +0200
+++ new/qttasktree-everywhere-src-6.12.1/.cmake.conf    2026-11-16 
17:22:10.000000000 +0100
@@ -1,4 +1,4 @@
-set(QT_REPO_MODULE_VERSION "6.12.0")
+set(QT_REPO_MODULE_VERSION "6.12.1")
 set(QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT "alpha1")
 set(QT_REPO_PUBLIC_NAMESPACE_REGEX "^::QtTaskTree.*")
 set(QT_EXTRA_INTERNAL_TARGET_DEFINES
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qttasktree-everywhere-src-6.12.0/.tag 
new/qttasktree-everywhere-src-6.12.1/.tag
--- old/qttasktree-everywhere-src-6.12.0/.tag   2026-09-26 12:11:26.000000000 
+0200
+++ new/qttasktree-everywhere-src-6.12.1/.tag   2026-11-16 17:22:10.000000000 
+0100
@@ -1 +1 @@
-bb7e5587370bb5073e2d47123beb51ffba5c7fcd
+5824b8e90def2fe5d1df73b893824157c7742b69
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qttasktree-everywhere-src-6.12.0/dependencies.yaml 
new/qttasktree-everywhere-src-6.12.1/dependencies.yaml
--- old/qttasktree-everywhere-src-6.12.0/dependencies.yaml      2026-09-26 
12:11:26.000000000 +0200
+++ new/qttasktree-everywhere-src-6.12.1/dependencies.yaml      2026-11-16 
17:22:10.000000000 +0100
@@ -1,4 +1,4 @@
 dependencies:
   ../qtbase:
-    ref: 025bdad181de241e81bf853c8a2d7bf3d19261a9
+    ref: 5af1a37e31a869cd6eb8a73d82e2c71a450e6634
     required: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qttasktree-everywhere-src-6.12.0/src/tasktree/doc/qttasktree.qdocconf 
new/qttasktree-everywhere-src-6.12.1/src/tasktree/doc/qttasktree.qdocconf
--- old/qttasktree-everywhere-src-6.12.0/src/tasktree/doc/qttasktree.qdocconf   
2026-09-26 12:11:26.000000000 +0200
+++ new/qttasktree-everywhere-src-6.12.1/src/tasktree/doc/qttasktree.qdocconf   
2026-11-16 17:22:10.000000000 +0100
@@ -17,7 +17,7 @@
 
 qhp.QtTaskTree.subprojects.classes.title = C++ Classes
 qhp.QtTaskTree.subprojects.classes.indexTitle = Qt TaskTree C++ Classes
-qhp.QtTaskTree.subprojects.classes.selectors = class fake:headerfile
+qhp.QtTaskTree.subprojects.classes.selectors = class namespace headerfile
 qhp.QtTaskTree.subprojects.classes.sortPages = true
 
 qhp.QtTaskTree.subprojects.examples.title              = Examples
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qttasktree-everywhere-src-6.12.0/src/tasktree/qtasktree.cpp 
new/qttasktree-everywhere-src-6.12.1/src/tasktree/qtasktree.cpp
--- old/qttasktree-everywhere-src-6.12.0/src/tasktree/qtasktree.cpp     
2026-09-26 12:11:26.000000000 +0200
+++ new/qttasktree-everywhere-src-6.12.1/src/tasktree/qtasktree.cpp     
2026-11-16 17:22:10.000000000 +0100
@@ -19,13 +19,16 @@
 #include <QtCore/QHash>
 #include <QtCore/QMap>
 #include <QtCore/QMetaEnum>
-#include <QtCore/QMutex>
 #include <QtCore/QPointer>
 #include <QtCore/QSet>
 #include <QtCore/QThread>
 #include <QtCore/QTime>
 #include <QtCore/QTimer>
 
+#include <mutex>
+#include <shared_mutex>
+#include <unordered_map>
+
 using namespace std::chrono;
 
 QT_BEGIN_NAMESPACE
@@ -2123,18 +2126,44 @@
 }
 
 template <typename T>
-class LocalThreadStorage
+class alignas(64) LocalThreadStorage
 {
 public:
     T &data() {
-        QMutexLocker lock(&m_threadDataMutex);
-        return 
m_threadDataMap.try_emplace(QThread::currentThread()).first->second;
+        if (QThread::isMainThread()) {
+            // Complete lock-free path for the main thread only.
+            if (!m_mainThreadData)
+                return m_mainThreadData.emplace();
+            return *m_mainThreadData;
+        }
+        QThread *currentThread = QThread::currentThread();
+        // 1. Fast path: lock-free
+        {
+            std::shared_lock locker(m_threadDataLock);
+            if (m_threadDataMap) {
+                auto it = m_threadDataMap->find(currentThread);
+                if (it != m_threadDataMap->end())
+                    return it->second; // Lock-free read.
+            }
+        }
+        // 2. Slow path: synchronized
+        // Allocate the node outside of the lock, only insert it under the 
lock.
+        std::unordered_map<QThread *, T> tmp;
+        const auto it = tmp.try_emplace(currentThread).first;
+        std::unique_lock locker(m_threadDataLock);
+        if (!m_threadDataMap) {
+            m_threadDataMap.emplace(std::move(tmp));
+            return m_threadDataMap->begin()->second; // The only element.
+        }
+        return m_threadDataMap->insert(tmp.extract(it)).position->second;
     }
 private:
-    QMutex m_threadDataMutex = {};
-    // Use std::map on purpose, so that it doesn't invalidate references on 
modifications.
-    // Don't optimize it by using std::unordered_map.
-    std::map<QThread *, T> m_threadDataMap = {};
+    // The hot data goes first (offset zero), and the rest starts on a new 
cache line
+    // (64 bytes assumed) to avoid false sharing with the main thread's 
accesses.
+    std::optional<T> m_mainThreadData = std::nullopt;
+    alignas(64) std::shared_mutex m_threadDataLock;
+    // The main thread is excluded and kept on m_mainThreadData.
+    std::optional<std::unordered_map<QThread *, T>> m_threadDataMap = 
std::nullopt;
 };
 
 class IteratorThreadData
@@ -2143,7 +2172,7 @@
 
 public:
     IteratorThreadData() = default;
-    void push(qsizetype index, void *list)
+    void push(qsizetype index, const void *list)
     {
         m_activeStack.push_back({index, list});
     }
@@ -2161,7 +2190,7 @@
             "or the iterator is not reachable from where it is referenced."); 
return -1);
         return m_activeStack.last().iterationIndex;
     }
-    void *activeList() const
+    const void *activeList() const
     {
         QT_TASKTREE_ASSERT(m_activeStack.size(), return nullptr);
         return m_activeStack.last().list;
@@ -2170,7 +2199,7 @@
 private:
     struct Entry {
         qsizetype iterationIndex;
-        void *list;
+        const void *list;
     };
     QList<Entry> m_activeStack;
 };

Reply via email to