[SERVER-25732] Add a Counter<T> RAII type for managing shared resources Created: 22/Aug/16  Updated: 06/Dec/22  Resolved: 06/Aug/19

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

Type: New Feature Priority: Major - P3
Reporter: Mira Carey Assignee: Backlog - Service Architecture
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Participants:

 Description   

Providing an RAII type that increments on creation and decrements on destruction (with specializations for Atomic word) would make it less error prone to refcount things than the current raw calls to fetchAndAdd(1) fetchAndSubtract(1).



 Comments   
Comment by Mira Carey [ 06/Aug/19 ]

Without a real use case, not going to push this ticket forward

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