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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-rc0
    • Component/s: Concurrency
    • Labels:
      None
    • Backwards Compatibility:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: