Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2770

Getting the work queue with proton::link::work_queue() is not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • proton-c-0.39.0
    • None
    • cpp-binding
    • None

    Description

      The accessor proton::link::work_queue() returns a reference to the proton::work_queue(), but making that call uses the link::container() method that increases the refcount on the pn_connection, making this function uncallable from outside of the work_queue.

      I believe the documentation should make that explicit, or the function should be changed to be thread safe.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jfsimoneau Jean-François Simoneau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: