summaryrefslogtreecommitdiffstats
path: root/src/tools/qglobal.cpp
diff options
context:
space:
mode:
authorOBATA Akio <[email protected]>2021-12-27 17:29:50 +0900
committerSlávek Banko <[email protected]>2021-12-29 15:32:16 +0100
commitdc6b2e3d45b166c8aaa9946bfdda23fdc2a7b22b (patch)
tree34e77689891c0c974cf6c73a6876a00531e6c5d0 /src/tools/qglobal.cpp
parent96f244b00ce96c7b60c63754563f4c257efb9ea4 (diff)
downloadtqt3-dc6b2e3d45b166c8aaa9946bfdda23fdc2a7b22b.tar.gz
tqt3-dc6b2e3d45b166c8aaa9946bfdda23fdc2a7b22b.zip
tools: fix to use `pthread_t` for Thread ID
Thread ID is opaque type pthread_t, it may not be compatible with integer, and may integer with valid id `0`. Change to store mutex owner thread ID as `pthread_t` type with valid flag and compare with `pthread_equal()`, and don't try to print it. Signed-off-by: OBATA Akio <[email protected]> (cherry picked from commit 7e4fc64d69e8211cbe6e6fed33998ecab29c873d)
Diffstat (limited to 'src/tools/qglobal.cpp')
0 files changed, 0 insertions, 0 deletions