Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103008

Document 3-arg overloads of Q*Atomic*::testAndSet(Relaxed|Acquire|Release|Ordered)

    XMLWordPrintable

Details

    • 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

        Activity

          People

            javyas Jaishree Vyas
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are 2 open Gerrit changes