Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-10970

Support closing of a LockResource by a different thread

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • services-4.1.0
    • services-4.1.0
    • None
    • None
    • 0.5
    • Pulsar
    • Platform 168

    Description

      The LockManager currently only allows closing (unlocking) a previously claimed lock by the same thread.

      A useful/needed improvement is to allow handing the LockResource to a different thread (for example a background scheduler) to close (unlock) the resource after finishing a specific task.

      This will be implemented by simply allowing the LockResource#close() to be invoked by another thread. Then, the LockResource instance itself can be 'shared' as the 'handle' to do this.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adouma Ate Douma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: