diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2023-02-22 17:38:37 -0800 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-02-28 20:19:52 +0000 |
commit | 5f32c9edce208125f642c86a4bc9e73564386243 (patch) | |
tree | b5c6876225ee85de74e20d93741028d3130eabcf /src/3rdparty/harfbuzz-ng/src/OT/Layout/GSUB/Sequence.hh | |
parent | b528e44f5a9fc3194f4d2a14fee1e56558061997 (diff) |
tst_QTimer: suppress the cross-thread timer stopping warnings
Both QTimer's and QObjectPrivate's destructors print a warning if the
current object lives on another thread and has an active timer:
QWARN : tst_QTimer::moveToThread() QObject::killTimer: Timers cannot be stopped from another thread
QWARN : tst_QTimer::moveToThread() QObject::~QObject: Timers cannot be stopped from another thread
This timer is used to ask the thread to quit, which in turn allows us to
destroy this QObject without a cross-thread warning. Because it's
already fired once and done its duty, we can make sure it's not active
by simply making it single-shot.
Pick-to: 6.4 6.5
Change-Id: Ieec322d73c1e40ad95c8fffd17465067b27c044b
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/3rdparty/harfbuzz-ng/src/OT/Layout/GSUB/Sequence.hh')
0 files changed, 0 insertions, 0 deletions