Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
Introduce an AutoCloseableLock class that is a thin wrapper over RentrantLock. It allows using RentrantLock with try-with-resources syntax.
The wrapper functions perform no expensive operations in the lock acquire/release path.