Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-2943

Add scoped resource class to help clean up resource leaks.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.1.0
    • Core
    • None

    Description

      Create a set of template classes to handle contingently allocated resources in a cleaner and more robust way. This holds the resource and destroys it if it goes out of scope, with the ability to release the resource after all contingent checks have been done. It is modeled on the current xptr class but with more generality and better naming.

      Attachments

        1. ts-2943.diff
          16 kB
          Alan M. Carroll

        Issue Links

          Activity

            People

              amc Alan M. Carroll
              amc Alan M. Carroll
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: