Fix broken auto-links in QAtomic docs

- There is no load() in Q*Atomic (unlike std::atomic), so link to
  loadAcquire()/loadRelaxed(), depending on context.

- Also remove the template argument, <T>, which prevents qdoc linking.

Amends b62c3a85452aecf4f6c863645db34857b05d5ebf and
329e09a3c303fad1ab001de74924288aae1e7a9d.

Pick-to: 6.8 6.5 6.2 5.15
Change-Id: I8c58674ffc7e779fee982555edcd45ed40d4c17d
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 9854482835071993968a524878b601c1d9327f1e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
David Boddie 2025-02-03 17:30:21 +01:00 committed by Qt Cherry-pick Bot
parent eb13efc4a6
commit 40dc33a9d3

View File

@ -398,7 +398,7 @@
Atomic test-and-set.
\note If you use this function in a loop, consider using the overload with the
additional \c{T &currentValue} argument instead, which avoids the extra load() on
additional \c{T &currentValue} argument instead, which avoids the extra loadRelaxed() on
failure.
If the current value of this QAtomicInteger is the \a expectedValue,
@ -420,7 +420,7 @@
Atomic test-and-set.
\note If you use this function in a loop, consider using the overload with the
additional \c{T &currentValue} argument instead, which avoids the extra load() on
additional \c{T &currentValue} argument instead, which avoids the extra loadAcquire() on
failure.
If the current value of this QAtomicInteger is the \a expectedValue,
@ -442,7 +442,7 @@
Atomic test-and-set.
\note If you use this function in a loop, consider using the overload with the
additional \c{T &currentValue} argument instead, which avoids the extra load() on
additional \c{T &currentValue} argument instead, which avoids the extra loadRelaxed() on
failure.
If the current value of this QAtomicInteger is the \a expectedValue,
@ -464,7 +464,7 @@
Atomic test-and-set.
\note If you use this function in a loop, consider using the overload with the
additional \c{T &currentValue} argument instead, which avoids the extra load() on
additional \c{T &currentValue} argument instead, which avoids the extra loadAcquire() on
failure.
If the current value of this QAtomicInteger is the \a expectedValue,
@ -1060,7 +1060,7 @@
This macro is defined when only certain generations of the
processor support atomic reference counting. Use the
QAtomicInteger<T>::isReferenceCountingNative() function to check what
QAtomicInteger::isReferenceCountingNative() function to check what
your processor supports.
\e{nn} is the size of the integer, in bits (8, 16, 32 or 64).
@ -1103,7 +1103,7 @@
This macro is defined when only certain generations of the
processor support atomic test-and-set on integers. Use the
QAtomicInteger<T>::isTestAndSetNative() function to check what your
QAtomicInteger::isTestAndSetNative() function to check what your
processor supports.
\e{nn} is the size of the integer, in bits (8, 16, 32 or 64).
@ -1146,7 +1146,7 @@
This macro is defined when only certain generations of the
processor support atomic fetch-and-store on integers. Use the
QAtomicInteger<T>::isFetchAndStoreNative() function to check what your
QAtomicInteger::isFetchAndStoreNative() function to check what your
processor supports.
\e{nn} is the size of the integer, in bits (8, 16, 32 or 64).
@ -1189,7 +1189,7 @@
This macro is defined when only certain generations of the
processor support atomic fetch-and-add on integers. Use the
QAtomicInteger<T>::isFetchAndAddNative() function to check what your
QAtomicInteger::isFetchAndAddNative() function to check what your
processor supports.
\e{nn} is the size of the integer, in bits (8, 16, 32 or 64).