diff options
| author | Liu Zheng <liuzheng@uniontech.com> | 2025-08-20 13:44:46 +0800 |
|---|---|---|
| committer | Liu Zheng <liuzheng@uniontech.com> | 2025-08-21 12:20:30 +0800 |
| commit | b40086e00829f5efa2cc2997049e17222af57eca (patch) | |
| tree | 8323583f08f65e79b564ee508394e4db4aef7b39 /src/widgets/doc/snippets/cmake-macros/examples.cpp | |
| parent | 28449e220f82206ac8cc05d1b9bf209a0e80d057 (diff) | |
UBSan build failure by replacing QThreadPrivate usage
Replace private QThreadData::get2() API calls with public Qt APIs
to resolve undefined symbol references when building with UBSan.
The issue occurred because QThreadPrivate symbols are not exported
in non-developer builds, causing link failures with UBSan enabled.
This fix maintains the same thread safety validation while using
only public APIs:
Fixes: QTBUG-123404
Change-Id: Ie73ac47246302f133367f2cd7cab5d8f77f0cfcb
Reviewed-by: Anton Kudryavtsev <antkudr@mail.ru>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'src/widgets/doc/snippets/cmake-macros/examples.cpp')
0 files changed, 0 insertions, 0 deletions
