Lines Matching refs:wait

245      * monitor by calling one of the {@code wait} methods.
270 * @see java.lang.Object#wait()
277 * {@code wait} methods.
294 * @see java.lang.Object#wait()
299 * Causes the current thread to wait until either another thread invokes the
307 * place itself in the wait set for this object and then to relinquish
323 * The thread <var>T</var> is then removed from the wait set for this
328 * ante - that is, to the situation as of the time that the {@code wait}
330 * invocation of the {@code wait} method. Thus, on return from the
331 * {@code wait} method, the synchronization state of the object and of
332 * thread {@code T} is exactly as it was when the {@code wait} method
339 * continuing to wait if the condition is not satisfied. In other words,
344 * obj.wait(timeout);
360 * Note that the {@code wait} method, as it places the current thread
361 * into the wait set for this object, unlocks only this object; any
370 * @param timeout the maximum time to wait in milliseconds.
383 public final native void wait(long timeout) throws InterruptedException;
386 * Causes the current thread to wait until another thread invokes the
392 * This method is similar to the {@code wait} method of one
394 * wait for a notification before giving up. The amount of real time,
401 * method {@link #wait(long)} of one argument. In particular,
402 * {@code wait(0, 0)} means the same thing as {@code wait(0)}.
424 * obj.wait(timeout, nanos);
433 * @param timeout the maximum time to wait in milliseconds.
447 public final void wait(long timeout, int nanos) throws InterruptedException {
461 wait(timeout);
465 * Causes the current thread to wait until another thread invokes the
469 * performs the call {@code wait(0)}.
483 * obj.wait();
502 public final void wait() throws InterruptedException {
503 wait(0);