aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-12-22 14:06:34 +0100
committerUlf Hermann <ulf.hermann@qt.io>2024-01-10 11:22:43 +0100
commit47ddbb72e052989622f5fa23e032c787bed5f2e5 (patch)
tree6c18a31045527b7b43be331651607ac34908639a /src/qml/jsruntime/qv4engine_p.h
parentbe6d1499af75228341227d15441284e07cfe1e41 (diff)
QtQml: Get rid of the module mutex
It only exists so that the type loader can query pre-compiled and native modules from the loader thread. However, the type loader already has a mutex of its own. We can use that to inject a "native" blob into its script cache for the same effect. We need to get rid of the mutex so that we can use the module map for other compilation units, too. Change-Id: I5a9c266ea36b50f5ea69214110def644f7501674 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r--src/qml/jsruntime/qv4engine_p.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h
index 8ab3d62311..25484f2773 100644
--- a/src/qml/jsruntime/qv4engine_p.h
+++ b/src/qml/jsruntime/qv4engine_p.h
@@ -862,7 +862,6 @@ private:
QVector<Deletable *> m_extensionData;
- mutable QMutex moduleMutex;
QHash<QUrl, QQmlRefPointer<ExecutableCompilationUnit>> modules;
// QV4::PersistentValue would be preferred, but using QHash will create copies,