]> dgit.raspbian.org Git - qtbase-opensource-src.git/commit
QReadWriteLock: fix data race on the d_ptr members
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Mon, 21 Sep 2026 18:14:33 +0000 (21:14 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Mon, 21 Sep 2026 18:14:33 +0000 (21:14 +0300)
commit7cf0e41de8efd03a4663dda2b53f608aa2433ad5
treeeff44e1dc8efcc0d2b463e6156775decc55a0de8
parent3e287587343702b0d2dab76614b5ed16695dc045
QReadWriteLock: fix data race on the d_ptr members

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit?id=80d01c4ccb697b9d
Last-Update: 2025-12-14

The loadRelaxed() at the beginning of tryLockForRead/tryLockForWrite
isn't enough to bring us the non-atomic write of the recursive bool.
Same issue with the std::mutex itself.

Gbp-Pq: Name qreadwritelock_data_race.diff
src/corelib/thread/qreadwritelock.cpp