Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-43800

ClockSource::waitForConditionUntil shouldn't use unique_lock out of line

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2019-10-21
    • 21

    Description

      We have a somewhat dubious pattern here where it is possible for an alarm to invoke inline and attempt to hold a lock that was already acquired. The lock use itself isn't necessary, because condition variables are surprisingly atomic.

      Attachments

        Activity

          People

            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: