-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
None
-
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.
These functions call the appropriate lock method, execute the Runnable or Callable in a try block and call unlock in a finally block.