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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc0
    • Affects Version/s: None
    • Component/s: Concurrency
    • None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: