Details
-
Bug
-
Status: Closed
-
Low
-
Resolution: Fixed
-
None
-
None
-
None
Description
The LockResource is an object that can be shared between different threads. Therefor, #close can be invoked concurrently and needs to be synchronized.
The LockResourceImpl currently returns MutableLock for #getLock. I think it can better return an immutable Lock object instead to avoid potential more concurrency