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

Add a Counter<T> RAII type for managing shared resources

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 3.3.11
    • Internal Code
    • None
    • Service Arch

    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).

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: