Class CloseableLock

java.lang.Object
org.mbari.jcommons.util.CloseableLock
All Implemented Interfaces:
AutoCloseable, Lock

public class CloseableLock extends Object implements AutoCloseable, Lock
Deprecated.
Use AutoCloseableLock instead
A wrapper around a ReentrantLock that allows you to use it in a try-with-resources block. var lock = new CloseableLock(); try (lock.lock()) { // do something } From https://debugagent.com/relearning-java-thread-primitives