Package ghidra.util
Class Lock
java.lang.Object
ghidra.util.Lock
Ghidra synchronization lock. This class allows creation of named locks for
 synchronizing modification of multiple tables in the Ghidra database.
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
Lock
Creates an instance of a lock for synchronization within Ghidra.- Parameters:
 name- the name of this lock
 
 - 
 - 
Method Details
- 
acquire
public void acquire()Acquire this synchronization lock. (i.e. begin synchronizing on this named lock.) - 
release
public void release()Releases this lock, since you are through with the code that needed synchronization. - 
getOwner
Gets the thread that currently owns the lock.- Returns:
 - the thread that owns the lock or null.
 
 
 -