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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core: Threads
    • Labels:
    • Story Points:
      5
    • Sprint:
      Foundation Sprint 62, Foundation Sprint 63

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes