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

Make TickSourceMock class thread safe

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Sharding 2020-06-15
    • 0

    Description

      In order to avoid data race while accessing TickSourceMock's class api concurrently by multiple threads, the _currentTicks class variable access need to be serialized through the usage of some thread syncronization primitive such as mutex.

      Attachments

        Activity

          People

            tommaso.tocci@mongodb.com Tommaso Tocci
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: