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

Avoid holding the core action lock when waking the core thread

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.17.0
    • 1.18.0
    • Router Node
    • None

    Description

      Currently when an action is queued for the core to process, the queuing code calls pthread_cond_signal() while holding the associated mutex.  This can cause the core thread to be woken then immediately put sleep while taking the mutex.

       

      It is legal to call pthread_cond_signal() without holding the lock. Doing this will avoid contention on the associated mutex.

      Attachments

        Activity

          People

            kgiusti Ken Giusti
            kgiusti Ken Giusti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: