summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qsemaphore.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-09-06 21:58:36 +0000
committerThiago Macieira <thiago.macieira@intel.com>2020-09-09 04:00:28 +0000
commit475464906cf8a4edd29510975af8bc3af4e7d9cc (patch)
tree1f06e55b9f99f5b799edab0f3383fdd003ed1fff /src/corelib/thread/qsemaphore.h
parente33d40a88476e8a9d4f950fb285c75d0c1a92a2e (diff)
Revert "Cleanup QSemaphore and make it always 64bit large"
This reverts commit ff69227a49119c00f703cf89c9d72db7eeeeaa66. Reason for revert: 64-bit atomics on 32-bit systems are often (but not always) worse than the 32-bit semaphore as it was implemented. Plus the High32 and Low32 functions are returning the same thing, forgetting the endianness check. Change-Id: I5d5ade6e9bc7086600ff2302546385151e32142b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/thread/qsemaphore.h')
-rw-r--r--src/corelib/thread/qsemaphore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qsemaphore.h b/src/corelib/thread/qsemaphore.h
index ccb86b3047..b3b9b52052 100644
--- a/src/corelib/thread/qsemaphore.h
+++ b/src/corelib/thread/qsemaphore.h
@@ -67,7 +67,7 @@ private:
union {
QSemaphorePrivate *d;
- QBasicAtomicInteger<quint64> u;
+ QBasicAtomicInteger<quintptr> u; // ### Qt6: make 64-bit
};
};