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

WithLock(stdx::lock_guard<>&&) = delete;

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.6.0-rc0
    • None
    • Concurrency
    • None
    • Fully Compatible

    Description

      A deleted constructor would make a call like
      {{ _needsLock(stdx::lock_guard<stdx::mutex>(_mutex), _other);}}
      fail.

      Rationale is that depending on implementation, lock might or might not be held when _other is used.

      Attachments

        Activity

          People

            nathan.myers Nathan Myers
            nathan.myers Nathan Myers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: