public class RunQLock extends Object
Constructor and Description |
---|
RunQLock()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public void grabLock()
public void releaseLock()
public void signal()
public void waitForSignal(long sleep)
sleep
- The max time to sleep, if nothing is submitted.