summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2020-05-29 08:50:13 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2020-05-30 09:55:05 +0300
commit10a0dc6600ac039ca94defc461d7b1c714d86387 (patch)
treea309c516765072749489d519b001ad2d47874655 /src/plugins
parent71e3b042826cbb4457373f94e50f2dc1aeb98b20 (diff)
Return correct threadId in all cases
If the assembler code cannot be used to retrieve the threadId, always use pthread_self() for it. QObject uses QThread::currentThreadId() and QThreadData::threadId to match threads, which makes address of the currentThreadData unsuitable as the thread id. Reading the threadId from currentThreadData is slower than calling pthread_self(), as tested on Aarch64 linux and x86_64 QNX. Change-Id: If9afc8ed2810ad1e04bd42ead8f40b43ef3bac30 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions