|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mmtk.vm.Lock
public abstract class Lock
Simple, fair locks with deadlock detection.
| Constructor Summary | |
|---|---|
Lock()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lock()
| Method Detail |
|---|
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()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||