/libcore/luni/src/main/java/java/nio/channels/spi/ |
H A D | AbstractInterruptibleChannel.java | 40 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 D | VMThread.java | 30 static native boolean interrupted(); method in class:VMThread
|
H A D | Thread.java | 668 * @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 D | AbstractQueuedLongSynchronizer.java | 576 * 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 D | AbstractQueuedSynchronizer.java | 805 * 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 D | Exchanger.java | 307 * @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 D | Phaser.java | 65 * 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 D | CyclicBarrier.java | 90 * {@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 D | ForkJoinTask.java | 250 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 D | LinkedTransferQueue.java | 292 * 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 D | SynchronousQueue.java | 148 * by checking Thread.interrupted. 848 Thread.interrupted(); 867 if (!Thread.interrupted()) 897 Thread.interrupted(); 912 if (e != null || !Thread.interrupted())
|
H A D | ForkJoinPool.java | 778 * 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 D | FutureTask.java | 314 // Thread.interrupted(); 370 if (Thread.interrupted()) { 401 * Tries to unlink a timed-out or interrupted wait node to avoid
|
H A D | ThreadPoolExecutor.java | 419 * 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 D | OldThreadGroupTest.java | 245 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 D | OldAndroidMonitorTest.java | 40 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 D | InterruptedStreamTest.java | 50 Thread.interrupted(); // clear interrupted bit 60 Thread.interrupted(); // clear interrupted bit
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldDatagramSocketTest.java | 56 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...] |