summaryrefslogtreecommitdiffstats
path: root/examples/dbus
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2021-04-02 21:36:21 -0700
committerThiago Macieira <thiago.macieira@intel.com>2021-10-26 11:38:56 -0700
commit0077eac4e4794cb956531ff89a9007dfc5dc78c3 (patch)
tree48aefae6bb537a48fbb77264ec8f5789191f9bdf /examples/dbus
parent6adaaa77452d8ddc33bcad9a49a2603dc118a1fe (diff)
QHash: double the size of the stored seed
There's now another half of the seed which will be used by the hashers. This is not stored in QHash, so it is never changed for the lifetime of the application (not even when QHashSeed::setDeterministicGlobalSeed() is called). However, we will not use it when we're in deterministic mode. This commit uses the compiler thread-safe statics to implement the initialization of more than one atomic word, thus freeing us from having to have a reserved value. As a bonus, the QT_HASH_SEED warning will only be printed once. Change-Id: Id2983978ad544ff79911fffd16723f1673f9a5b4 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples/dbus')
0 files changed, 0 insertions, 0 deletions