|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.util.ConditionVariable
public class ConditionVariable
Utility class: ConditionVariable
| Constructor Summary | |
|---|---|
ConditionVariable(Mutex lock)
Constructs a new ConditionVariable object. |
|
| Method Summary | |
|---|---|
void |
signal()
Signal one thread waiting on this ConditionVariable. |
void |
signalAll()
Signal all threads waiting on this ConditionVariable. |
void |
waitOn()
Wait on ConditionVariable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConditionVariable(Mutex lock)
ConditionVariable object.
The lock guards the ConditionVariable.
lock - The lock guarding the ConditionVariable| Method Detail |
|---|
public void waitOn()
throws java.lang.InterruptedException
java.lang.InterruptedException - Acquiring the lock has failed.public void signal()
public void signalAll()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||