qt5base-lts/tests/auto/network/ssl/qsslcertificate
Shane Kearns 00821ec710 QSslCertificate - make lazy initialisation thread safe
QSslCertificate can be copied around into multiple threads,
without detaching. For example, the https worker threads inside
QNetworkAccessManager.
There are const methods, which lazily initialise members of
the private class without detaching (i.e. caching results of
expensive function calls)
These functions now lock the d pointer using QMutexPool to
avoid concurrency related crashes.

autotest crashes 20% of the time in release builds without
the fix, passes 100 times in a row with the fix.

Task-number: QTBUG-20452
Change-Id: I64a01af8159216f2dd6215a08669890f6c029ca8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Richard J. Moore <rich@kde.org>
2012-03-06 12:25:22 +01:00
..
certificates Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
more-certificates Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
verify-certs Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
qsslcertificate.pro Changed qsslcertificate unittest to work from install directory 2012-02-17 05:24:40 +01:00
tst_qsslcertificate.cpp QSslCertificate - make lazy initialisation thread safe 2012-03-06 12:25:22 +01:00