[SERVER-71066] PriorityTicketHolder::_enqueuedElements is atomic but always guarded by X lock Created: 03/Nov/22  Updated: 27/Oct/23  Resolved: 22/Nov/22

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

Type: Task Priority: Major - P3
Reporter: Haley Connelly Assignee: Haley Connelly
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Execution Team 2022-11-28
Participants:

 Description   

If the member is only accessed under an exclusive lock, it doesn't need to be atomic



 Comments   
Comment by Haley Connelly [ 22/Nov/22 ]

Closing this ticket as works as designed

(1) _enqueuedElements is no longer changed underneath the lock guard.
(2) We want _enqueuedElements to decrement when the scope exits. From my understanding, if we are inside ON_BLOCK_EXIT, then we will no longer be holding the lock.

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