summaryrefslogtreecommitdiffstats
path: root/.qmake.conf
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-04-24 12:00:25 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-04-24 18:22:02 +0000
commit4579d966af2e5d4ba229f13312eeb2f921406038 (patch)
tree4b7edb25d55f3b7affd06ffce154bedba5f844cd /.qmake.conf
parent8586cccc071240a8eff6c5aa53a90010dae55193 (diff)
QMutexPool: avoid QVarLengthArray of QAtomicPointers
QAtomicPointer is CopyConstructible, but std::atomic<T*> is not, for a reason. So avoid putting them in a QVarLengthArray, using a dynamic heap allocation instead. This sounds wasteful until you realize that virtually all users of QMutexPool (and we know them all) use the global instance(), and that each QMutex (131, by default) is heap-allocated, too. Change-Id: Ie9c95671ec42a1f51919c18631b623aad2c0d6ba Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to '.qmake.conf')
0 files changed, 0 insertions, 0 deletions