|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.vm.Monitor
public abstract class Monitor
Provides MMTk access to a heavy lock with condition variable. Functionally similar to Java monitors, but safe in the darker corners of runtime code.
Constructor Summary | |
---|---|
Monitor()
|
Method Summary | |
---|---|
abstract void |
await()
Wait for a broadcast. |
abstract void |
broadcast()
Send a broadcast. |
abstract void |
lock()
Block until the lock is acquired. |
abstract void |
unlock()
Release the lock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Monitor()
Method Detail |
---|
public abstract void lock()
public abstract void unlock()
public abstract void await()
public abstract void broadcast()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |