diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-10-18 15:58:59 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-11-11 08:11:09 +0000 |
commit | 86d91d2bf8e7ac7a75f88f0e4886140abc06fd4c (patch) | |
tree | 6badede9ca348f82c544d5eaa51baa9d149e35b1 /doc | |
parent | 08bf28de03f16e5b014b23e228dfc3cfc2ac7feb (diff) |
QRandomGenerator: optimize the global() and system() storage
We store both in a single memory structure, instead of two local
statics. By construction, we also ensure that the global PRNG mutex is
in a different cacheline from the global PRNG state itself.
Finally, we don't store the full system QRandomGenerator, since we only
need the type member from it.
Change-Id: Icaa86fc7b54d4b368c0efffd14eecc48ff05ec27
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions