path: root/qmake
diff options
authorShane Kearns <>2012-02-29 15:53:24 +0000
committerQt by Nokia <>2012-03-06 12:25:22 +0100
commit00821ec710ec8d9549b9f7e68837a7393a954754 (patch)
treed08e2e577db90ae7b737075e10da98472b7b4b3d /qmake
parentc78957766a5adba45289a0f7afe22949a183b34b (diff)
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 <> Reviewed-by: Richard J. Moore <>
Diffstat (limited to 'qmake')
0 files changed, 0 insertions, 0 deletions