summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-05-15 11:54:44 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-05-18 13:05:41 (GMT)
commit3c40b1af35319f1fd1b10c97b954adff3abbe9b0 (patch)
tree7d71499d4965b9b376523e4325cc330d1a694347 /doc
parent6c16cb557205c8cf33bcf0493b3d9436c6f43236 (diff)
downloadQt-3c40b1af35319f1fd1b10c97b954adff3abbe9b0.zip
Qt-3c40b1af35319f1fd1b10c97b954adff3abbe9b0.tar.gz
Qt-3c40b1af35319f1fd1b10c97b954adff3abbe9b0.tar.bz2
Fix race condition in ~QObject
while using QOrderedMutexLocker::relock we might unlock our mutex protecting the 'senders' list for a short moment. Another thread may then modify or remove element on the list. Therefore, we need to recheck the consistency of the list once we did that. Also, we cannot call removeSender because that will remove every connections, making impossible for another object destroyed in the same time to clean up the senders list, so call derefSender instead. Reviewed-by: Brad
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions