|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.vm.Monitor org.jikesrvm.mm.mmtk.Monitor
public final 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.
Field Summary | |
---|---|
private Monitor |
theLock
|
Constructor Summary | |
---|---|
Monitor(String name)
|
Method Summary | |
---|---|
void |
await()
Wait for a broadcast. |
void |
broadcast()
Send a broadcast. |
void |
lock()
Block until the lock is acquired. |
void |
unlock()
Release the lock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Monitor theLock
Constructor Detail |
---|
public Monitor(String name)
Method Detail |
---|
public void lock()
Monitor
lock
in class Monitor
public void unlock()
Monitor
unlock
in class Monitor
public void await()
Monitor
await
in class Monitor
public void broadcast()
Monitor
broadcast
in class Monitor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |