Lines Matching refs:condition
210 * Waits for a notification and for a boolean condition to become true.
214 * @param condition the object to be notified and the booelan condition to wait for
217 * @return the final boolean value of the {@code condition}
220 public static boolean waitForConditionEx(final AtomicBoolean condition, long timeout)
223 synchronized (condition) {
225 while (!condition.get()) {
226 condition.wait(timeout);
232 return condition.get();
239 public static boolean waitForCondition(final AtomicBoolean condition, long timeout) {
241 return waitForConditionEx(condition, timeout);
250 public static void waitForConditionEx(final AtomicBoolean condition)
253 synchronized (condition) {
254 while (!condition.get()) {
255 condition.wait();
264 public static void waitForCondition(final AtomicBoolean condition) {
266 waitForConditionEx(condition);