Package ghidra.util

# Class LockHold

java.lang.Object
ghidra.util.LockHold

All Implemented Interfaces:
  `AutoCloseable`

public class LockHold extends Object implements AutoCloseable

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `LockHold(Lock lock)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `static LockHold`
  `lock(Lock lock)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LockHold

    protected LockHold(Lock lock)

- ## Method Details

  - ### lock

    public static LockHold lock(Lock lock)

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`