Default Functions for Lock Interface

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      The java.util.concurrent.locks.Lock interface should have several default methods added to make writing lock code cleaner and less error prone. I have attached a file with the implemented functions.

      These functions call the appropriate lock method, execute the Runnable or Callable in a try block and call unlock in a finally block.

            Assignee:
            Unassigned
            Reporter:
            Nathan Reynolds
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: