Constructor and Description |
---|
Lock() |
Modifier and Type | Method and Description |
---|---|
abstract void |
acquire()
Try to acquire a lock and spin-wait until acquired.
|
abstract void |
check(int w)
Perform sanity checks on the lock.
|
abstract void |
release()
Release the lock by incrementing serving counter.
|
abstract void |
setName(String str)
Set the name of this lock instance
|
public Lock()
public abstract void setName(String str)
str
- The name of the lock (for error output).public abstract void acquire()
public abstract void check(int w)
w
- Identifies the code location in the debugging output.public abstract void release()