Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
5
-
b62c3a8545 (qt/qtbase/dev) b62c3a8545 (qt/tqtc-qtbase/dev) b627f51978 (qt/qtbase/6.4) b627f51978 (qt/tqtc-qtbase/6.4) e4659c13de (qt/tqtc-qtbase/6.2)
-
Foundation Sprint 62, Foundation Sprint 63, Foundation Sprint 64, Foundation Sprint 65, Foundation Sprint 66
Description
Ever since the 3-arg testAndSet overloads were added, they should have been the go-to version for most users, because they save a load, as they return the value found in the atomic variable for free.
But they're not documented, so users (and Qt developers alike) don't know they exist.
Document these four functions on Q(Basic)Atomic(Integer|Pointer).
I think they're also missing from fake class definition in qatomic.h, so they'd need to be added there, too.
Attachments
For Gerrit Dashboard: QTBUG-103008 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
434029,1 | Document QAtomic testAndSet | 6.3 | qt/qtbase | Status: NEW | +2 | 0 |
434035,1 | Document QAtomic testAndSet | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: NEW | 0 | 0 |
425583,13 | Document QAtomic testAndSet | dev | qt/qtbase | Status: MERGED | +2 | 0 |
434028,2 | Document QAtomic testAndSet | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
434034,2 | Document QAtomic testAndSet | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |