|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectse.lth.cs.realtime.Condition.Factory
A factory which creates condition variables.
| Constructor Summary | |
Condition.Factory()
This constructor should be used when condition variables will be used within synchronized block and the object, which is used for synchronization, only will be used in the calling object. |
|
Condition.Factory(Monitor monitor)
This constructor should be used when condition variables will be used within a Monitor. |
|
Condition.Factory(MutexSem mutex)
This constructor should be used when condition variables are used in combination with a mutual exclusion semaphore. |
|
Condition.Factory(Synchronized.Lock syncObj)
This constructor should be used when condition variables will be used within synchronized blocks and the object, which is used for synchronization, need to be used elsewhere. |
|
| Method Summary | |
int |
getCondCount()
Returns the number of condition variables created by this factory. |
Condition |
newCondition()
Creates a new condition variable. |
Synchronized.Lock |
obtainLock()
This method returns the lock object of this factory. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Condition.Factory(MutexSem mutex)
mutex - The mutual exclusion semaphore.MutexSempublic Condition.Factory(Monitor monitor)
monitor - The monitor object.Monitorpublic Condition.Factory(Synchronized.Lock syncObj)
syncObj - The synchronization object.Synchronizedpublic Condition.Factory()
| Method Detail |
public final Synchronized.Lock obtainLock()
java.lang.UnsupportedOperationException - When a call is made to a factory
constructed to support mutex or monitor synchronization.public final int getCondCount()
public final Condition newCondition()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||