diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-01-29 13:29:10 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-04-16 16:49:29 +0200 |
commit | 984bc7cc3e53e1a9003209858f89bd7fcbd5f81c (patch) | |
tree | 9c68a9e55470accaf6378e9a8ca1062a3fd44a3a /src/widgets/styles/qstyle.cpp | |
parent | cf42a0fe5e525efa9a399694cc6882c6e811c286 (diff) |
Address thread safety issues in QProperty classes
While we do not support cross-thread bindings, reading of properties
from a different thread when no bindings are involved must continue to
work.
However the check whether bindings are involved used the QBindingStatus
in the QObjectPrivate. That one contains the wrong value when the
QObject is accessed from a different thread than the one it has affinity
with. This patch reads from the thread_local directly instead to
sidetstep the issue.
Change-Id: I8ce2092f35e210566934e2439beb5d48fd8cf226
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/widgets/styles/qstyle.cpp')
0 files changed, 0 insertions, 0 deletions