| java.lang.Object EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean EDU.oswego.cs.dl.util.concurrent.WaitableBoolean
Constructor Summary | |
public | WaitableBoolean(boolean initialValue) | public | WaitableBoolean(boolean initialValue, Object lock) Make a new WaitableBoolean with the given initial value,
and using the supplied lock. |
Method Summary | |
public boolean | and(boolean b) | public boolean | commit(boolean assumedValue, boolean newValue) | public boolean | complement() | public boolean | or(boolean b) | public boolean | set(boolean newValue) | public void | whenEqual(boolean c, Runnable action) Wait until value equals c, then run action if nonnull. | public void | whenFalse(Runnable action) Wait until value is false, then run action if nonnull. | public void | whenNotEqual(boolean c, Runnable action) wait until value not equal to c, then run action if nonnull. | public void | whenTrue(Runnable action) wait until value is true, then run action if nonnull. | public boolean | xor(boolean b) |
WaitableBoolean | public WaitableBoolean(boolean initialValue)(Code) | | Make a new WaitableBoolean with the given initial value *
|
WaitableBoolean | public WaitableBoolean(boolean initialValue, Object lock)(Code) | | Make a new WaitableBoolean with the given initial value,
and using the supplied lock.
|
and | public boolean and(boolean b)(Code) | | |
commit | public boolean commit(boolean assumedValue, boolean newValue)(Code) | | |
complement | public boolean complement()(Code) | | |
or | public boolean or(boolean b)(Code) | | |
set | public boolean set(boolean newValue)(Code) | | |
whenEqual | public void whenEqual(boolean 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.
|
whenFalse | public void whenFalse(Runnable action) throws InterruptedException(Code) | | Wait until value is false, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenNotEqual | public void whenNotEqual(boolean 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.
|
whenTrue | public void whenTrue(Runnable action) throws InterruptedException(Code) | | wait until value is true, then run action if nonnull.
The action is run with the synchronization lock held.
|
xor | public boolean xor(boolean b)(Code) | | |
Fields inherited from EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean | protected boolean value_(Code)(Java Doc)
|
Fields inherited from EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable | final protected Object lock_(Code)(Java Doc)
|
|
|