diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-06-04 13:24:28 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-06-11 12:34:18 +0200 |
commit | 08215dd21ebefe41f30e43d630a68d644419d021 (patch) | |
tree | 7d09ea0510af4ab4b5f68a008d7fd22bc53cde0c /src/qml/jit | |
parent | ab933b1c92ec4f39ce280fdf956a4c4a746cf4d9 (diff) |
Allow destroying QJSValues from other threads
QVariants are commonly passed around between threads and QVariants can
wrap QJSValues. Therefore we need to allow this. The persistent value is
freed immediately if we're still in the same thread. Otherwise a
message is passed to the QJSEngine that owns it. If there is no
QJSEngine we assume that we can free the value immediately. As such a
thing can only happen via private API we can make sure this assumption
holds.
Fixes: QTBUG-75939
Change-Id: I14c09fd5d6ef7ba689f66656f2bcbb5c88bacf89
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jit')
0 files changed, 0 insertions, 0 deletions