[SERVER-31145] WithLock(stdx::lock_guard<>&&) = delete; Created: 18/Sep/17  Updated: 30/Oct/23  Resolved: 25/Sep/17

Status: Closed
Project: Core Server
Component/s: Concurrency
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Nathan Myers Assignee: Nathan Myers
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 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.



 Comments   
Comment by Githook User [ 19/Sep/17 ]

Author:

{'username': 'nathan-myers-mongo', 'name': 'Nathan Myers', 'email': 'nathan.myers@10gen.com'}

Message: SERVER-31145 No move lock_guard<> to WithLock
Branch: master
https://github.com/mongodb/mongo/commit/80bd7075c17de85ed3014f21012b88478fa03fa8

Generated at Thu Feb 08 04:26:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.