# Class: com.pnfsoftware.jeb.util.concurrent.AbstractAutoClosingLock

Base implementation for auto\-closable locks. 

 Guideline for implementers: 
 
- call `super()` 
- acquire the lock 
- set the protected field [#locked](#locked) to true.

## Constructor: AbstractAutoClosingLock
- parameter: `lock`, type: `com.pnfsoftware.jeb.util.serialization.objects.SerReentrantLock`

Description: Create a wrapper for the provided lock.
parameter: lock: lock to release when [#close()](#close()) is called

## Protected Field: locked
Type: `java.util.concurrent.atomic.AtomicBoolean`
Description: Indicates whether this wrapper currently owns the underlying lock.

## Method: close

Description: Release the wrapped lock if it is currently held by this auto\-closing wrapper.

