Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1342

Replaced mutex with spin lock on qd_message content

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7.0
    • Fix Version/s: None
    • Component/s: Routing Engine
    • Labels:

      Description

      Given that qd_message creation and qd_message_free involves sys_mutex allocation/free and they are OS resources too, using spin locks will reduce the CPU/memory usage while performing such frequent operations.
      In addition it would make the router more reactive and resilient to OS thread scheduling while message->content is being concurrently accessed too, given that such accesses are meant to not last long and there is no need to involve OS arbitration to park/awake threads,

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nigro.fra@gmail.com Francesco Nigro
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: