summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qcommandlineparser.cpp
diff options
context:
space:
mode:
authorSoheil Armin <soheil.armin@qt.io>2024-11-01 11:59:07 +0200
committerSoheil Armin <soheil.armin@qt.io>2025-01-13 15:14:46 +0200
commitbf76387507dde71063ebe484bce1e7d1b8e09bc2 (patch)
treea3e90d6af72e38e347de0071ba5e9104c1daa3b4 /src/corelib/tools/qcommandlineparser.cpp
parent5f7149e3590e3c2e829f5a843feebe357c42ca67 (diff)
Android: Fix synchronization issue of QtAbstractItemModel and its proxy
Java methods of QtAbstractItemModel may get called from Qt GUI thread or Java main thread. Situation is the same with internal proxy methods, where they may directly or indirectly called from these two thread. At the same time, a chain of calls may happen from these threads, so some functions may get called indirectly from a single caller thread. In this change, we are adding a map of QObject* to QRecursiveMutux where the QObject is a QAbstractItemModel, either the proxy instance or a reference to an underlaying QAbstractItemModel when the model is implemented in C++. Each call to any function locks the QRecursiveMutux instance associated with the QAbstractItemModel instance. A connection from QObject::destroyed to a lamda, helps to remove the map entry when the model is destroyed. Pick-to: 6.9 6.8 Fixes: QTBUG-127467 Change-Id: I18dcdc207e201b3883526648b4e672e5868ed8ab Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
0 files changed, 0 insertions, 0 deletions