| java.lang.Object EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable EDU.oswego.cs.dl.util.concurrent.SynchronizedRef EDU.oswego.cs.dl.util.concurrent.WaitableRef
Constructor Summary | |
public | WaitableRef(Object initialValue) Create a WaitableRef initially holding the given reference
and using its own internal lock. | public | WaitableRef(Object initialValue, Object lock) Make a new WaitableRef with the given initial value,
and using the supplied lock. |
WaitableRef | public WaitableRef(Object initialValue)(Code) | | Create a WaitableRef initially holding the given reference
and using its own internal lock.
|
WaitableRef | public WaitableRef(Object initialValue, Object lock)(Code) | | Make a new WaitableRef with the given initial value,
and using the supplied lock.
|
whenEqual | public void whenEqual(Object c, Runnable action) throws InterruptedException(Code) | | Wait until value equals c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenNotEqual | public void whenNotEqual(Object c, Runnable action) throws InterruptedException(Code) | | wait until value not equal to c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenNotNull | public void whenNotNull(Runnable action) throws InterruptedException(Code) | | wait until value is nonnull, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenNull | public void whenNull(Runnable action) throws InterruptedException(Code) | | Wait until value is null, then run action if nonnull.
The action is run with the synchronization lock held.
|
Fields inherited from EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable | final protected Object lock_(Code)(Java Doc)
|
|
|