Searched refs:interrupted (Results 1 - 18 of 18) sorted by relevance

/libcore/luni/src/main/java/java/nio/channels/spi/
H A DAbstractInterruptibleChannel.java40 volatile boolean interrupted = false; field in class:AbstractInterruptibleChannel
45 interrupted = true;
111 if (interrupted) {
112 interrupted = false;
/libcore/luni/src/main/java/java/lang/
H A DVMThread.java30 static native boolean interrupted(); method in class:VMThread
H A DThread.java668 * @see Thread#interrupted
695 public static boolean interrupted() { method in class:Thread
696 return VMThread.interrupted();
733 * @see Thread#interrupted
901 * already been interrupted, the runnable will be invoked immediately. The
/libcore/luni/src/main/java/java/util/concurrent/locks/
H A DAbstractQueuedLongSynchronizer.java576 * Convenience method to park and then check if interrupted
578 * @return {@code true} if interrupted
582 return Thread.interrupted();
600 * @return {@code true} if interrupted while waiting
605 boolean interrupted = false;
612 return interrupted;
616 interrupted = true;
680 if (Thread.interrupted())
697 boolean interrupted = false;
705 if (interrupted)
[all...]
H A DAbstractQueuedSynchronizer.java805 * Convenience method to park and then check if interrupted
807 * @return {@code true} if interrupted
811 return Thread.interrupted();
829 * @return {@code true} if interrupted while waiting
834 boolean interrupted = false;
841 return interrupted;
845 interrupted = true;
909 if (Thread.interrupted())
926 boolean interrupted = false;
934 if (interrupted)
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DExchanger.java307 * @return the other thread's item, or CANCEL if interrupted or timed out
428 * in public exchange method to abort if interrupted on entry.
448 * filled in by another thread. Fails if interrupted before
483 * thread. Fails if timed out or interrupted before hole filled.
560 * the current thread is {@linkplain Thread#interrupt interrupted}),
579 * <li>has its interrupted status set on entry to this method; or
580 * <li>is {@linkplain Thread#interrupt interrupted} while waiting
584 * interrupted status is cleared.
589 * interrupted while waiting
592 if (!Thread.interrupted()) {
[all...]
H A DPhaser.java65 * waiting thread is interrupted. Interruptible and timeout
708 * value, throwing {@code InterruptedException} if interrupted
719 * @throws InterruptedException if thread interrupted while waiting
740 * InterruptedException} if interrupted while waiting, or
754 * @throws InterruptedException if thread interrupted while waiting
1022 boolean interrupted = Thread.interrupted();
1023 if (interrupted || --spins < 0) { // need node to record intr
1025 node.wasInterrupted = interrupted;
1090 if (Thread.interrupted())
[all...]
H A DCyclicBarrier.java90 * {@link InterruptedException} if they too were interrupted at about
175 if (Thread.interrupted()) {
196 // loop until tripped, broken, interrupted, or timed out
209 // been interrupted, so this interrupt is deemed to
291 * <li>has its interrupted status set on entry to this method; or
292 * <li>is {@linkplain Thread#interrupt interrupted} while waiting
295 * interrupted status is cleared.
302 * <p>If any thread is {@linkplain Thread#interrupt interrupted} while waiting,
318 * @throws InterruptedException if the current thread was interrupted
321 * interrupted o
[all...]
H A DForkJoinTask.java250 boolean interrupted = false;
260 interrupted = true;
265 if (interrupted)
277 if (Thread.interrupted())
904 * member of a ForkJoinPool and was interrupted while waiting
928 * member of a ForkJoinPool and was interrupted while waiting
H A DLinkedTransferQueue.java292 * the current thread was interrupted or the wait timed out. On
322 * may arise due to timed out or interrupted waits, or calls to
1081 Thread.interrupted(); // failure possible only due to interrupt
1104 if (!Thread.interrupted())
1113 Thread.interrupted();
1119 if (e != null || !Thread.interrupted())
H A DSynchronousQueue.java148 * by checking Thread.interrupted.
848 Thread.interrupted();
867 if (!Thread.interrupted())
897 Thread.interrupted();
912 if (e != null || !Thread.interrupted())
H A DForkJoinPool.java778 * clear status (using Thread.interrupted) before any call to
831 Thread.interrupted(); // clear before park
875 Thread.interrupted(); // spurious wakeup
1014 Thread.interrupted(); // clear interrupts before checking termination
1034 Thread.interrupted();
1941 * interrupted, whichever happens first.
1947 * @throws InterruptedException if interrupted while waiting
2029 * @throws InterruptedException if interrupted while waiting
H A DFutureTask.java314 // Thread.interrupted();
370 if (Thread.interrupted()) {
401 * Tries to unlink a timed-out or interrupted wait node to avoid
H A DThreadPoolExecutor.java419 * that have not yet interrupted. It also simplifies some of the
722 * most one waiting worker is interrupted to propagate shutdown
771 Thread.interrupted() &&
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldThreadGroupTest.java245 private static boolean interrupted = false; field in class:OldThreadGroupTest
259 assertFalse("Incorrect state of thread", interrupted);
261 assertFalse("Incorrect state of thread", interrupted);
267 assertTrue("Incorrect state of thread", interrupted);
321 interrupted = true;
H A DOldAndroidMonitorTest.java40 throw new RuntimeException("good Object.wait() interrupted",
55 throw new RuntimeException("bad Object.wait() interrupted", ex);
73 throw new RuntimeException("bad Object.wait() interrupted", ex);
92 throw new RuntimeException("bad Object.wait() interrupted", ex);
130 throw new RuntimeException("Test sleep interrupted.", ex);
146 throw new RuntimeException("Test wait interrupted.", ex);
163 throw new RuntimeException("Test join interrupted.", ex);
189 // We're going to get interrupted while we spin.
191 if (interrupted()) {
192 // System.out.println("Waiter done spinning; interrupted
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DInterruptedStreamTest.java50 Thread.interrupted(); // clear interrupted bit
60 Thread.interrupted(); // clear interrupted bit
/libcore/luni/src/test/java/libcore/java/net/
H A DOldDatagramSocketTest.java56 boolean interrupted; field in class:OldDatagramSocketTest
873 interrupted = false;
881 interrupted = true;
895 if (interrupted) {
903 interrupted = false;
913 interrupted = true;
930 if (interrupted) {
931 fail("receive2 was interrupted");
938 interrupted = false;
945 interrupted
[all...]

Completed in 9765 milliseconds