Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-2925

Invalid usage of ATOMIC_FLAG_INIT in member initialization

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: libprocess
    • Labels:
      None
    • Sprint:
      Twitter Mesos Q2 Sprint 6
    • Story Points:
      1

      Description

      The C++ specification states:

      The macro ATOMIC_FLAG_INIT shall be defined in such a way that it can be used to initialize an object of type atomic_flag to the clear state. The macro can be used in the form: "atomic_flag guard = ATOMIC_FLAG_INIT; "It is unspecified whether the macro can be used in other initialization contexts."

      Clang catches this (although reports it erroneously as a braced scaled init issue) and refuses to compile libprocess.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pbrett Paul Brett
                Reporter:
                pbrett Paul Brett
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: