summaryrefslogtreecommitdiffstats
path: root/src/corelib/arch
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2013-09-18 00:34:19 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-21 01:25:19 +0200
commit9efa71ac0a0e9c5f3d52b0205eee2c015f96443f (patch)
treed38a21a94c15757432a48879e33824f9de359cf5 /src/corelib/arch
parent84033f550f5f31f6cb7609c9edacb11f51802649 (diff)
QMutex: fix race on 'owner' in the recursive case
The read from 'owner' for comparison with 'self' in QRecursiveMutexPrivate::lock() is not synchronized with the write to 'owner' in the same function further down, and neither operation is atomic. Fix by making 'owner' an atomic pointer. Change-Id: I186b88575589da0dce5827a1e17ceb4ce599ed02 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/arch')
0 files changed, 0 insertions, 0 deletions