|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.engine.RunQLock
public class RunQLock
The RunQLock implements monitors to provide mutually exclusive access to critical sections. One lock provides run queue access locking for submitting and fetching runs. The other lock is a wait lock to wait for new run arrivals.
Constructor Summary | |
---|---|
RunQLock()
Constructor. |
Method Summary | |
---|---|
void |
grabLock()
Method to grab the lock for mutually exclusive access while entering a critical section. |
void |
releaseLock()
Method to release the lock while exit from the critical section. |
void |
signal()
Signals that a run is submitted. |
void |
waitForSignal(long sleep)
Sleeps for the given time, or until a new run is submitted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RunQLock()
Method Detail |
---|
public void grabLock()
public void releaseLock()
public void signal()
public void waitForSignal(long sleep)
sleep
- The max time to sleep, if nothing is submitted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |