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