[SERVER-69437] Add a move operator to the ResourceLock Created: 05/Sep/22  Updated: 27/Oct/23  Resolved: 05/Sep/22

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

Type: Task Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Works as Designed Votes: 0
Labels: PM-2144-Cleanup
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Sharding EMEA 2022-09-19
Participants:

 Description   

Currently, the ResourceLock only has a move constructor, but no move operator. This ticket is to add that move operator.



 Comments   
Comment by Kaloian Manassiev [ 05/Sep/22 ]

After some consideration I realised that move operator for RAII types actually doesn't make sense since it makes the semantics of moving into an already constructed object very complicated. None of the other RAII types have the move assignment operator, so there shouldn't be a need for this one either.

Closing this as WaD.

Generated at Thu Feb 08 06:13:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.