diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-03-18 21:19:02 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-04-26 18:19:39 +0200 |
commit | a3d50112e44bc42b310d9d3a8e6c7805ef31ef53 (patch) | |
tree | 71d7b3ff4efa587d0c21b790d887350672ba3502 /lib | |
parent | 7a374c38d288435b3c0a76b82a1c2ca53ea9c003 (diff) |
QThread: Introduce static isMainThread() helper
Useful for QtCreator, as a replacement for
Utils::isMainThread() inside threadutils.h,
may serve for other projects, too.
Introduce static QCoreApplicationPrivate::theMainThreadId
atomic helper field holding the id of the main thread.
Change-Id: Iccc0302f423f47b5ecad86c4cd3de4d1ee36155f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions