Searched defs:interrupted (Results 1 - 7 of 7) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/channels/spi/
H A DAbstractInterruptibleChannel.java73 * exception or by returning normally. If a thread is interrupted or the
146 private volatile Thread interrupted; field in class:AbstractInterruptibleChannel
164 interrupted = target;
194 * If the thread blocked in the I/O operation was interrupted
200 Thread interrupted = this.interrupted;
201 if (interrupted != null && interrupted == Thread.currentThread()) {
202 interrupted = null;
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldThreadGroupTest.java246 private static boolean interrupted = false; field in class:OldThreadGroupTest
260 assertFalse("Incorrect state of thread", interrupted);
262 assertFalse("Incorrect state of thread", interrupted);
268 assertTrue("Incorrect state of thread", interrupted);
322 interrupted = true;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DServerSocketTest.java54 boolean interrupted; field in class:ServerSocketTest
201 interrupted = false;
209 interrupted = true;
229 if (interrupted) {
230 fail("accept interrupted");
237 interrupted = false;
244 interrupted = true;
246 assertTrue("accept not interrupted", interrupted);
H A DSocketTest.java115 boolean interrupted; field in class:SocketTest
148 this.interrupted = false;
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
H A DStampedLock.java368 * given time and the current thread has not been interrupted.
376 * @throws InterruptedException if the current thread is interrupted
382 if (!Thread.interrupted()) {
398 * until available or the current thread is interrupted.
403 * @throws InterruptedException if the current thread is interrupted
408 if (!Thread.interrupted() &&
449 * given time and the current thread has not been interrupted.
457 * @throws InterruptedException if the current thread is interrupted
464 if (!Thread.interrupted()) {
485 * until available or the current thread is interrupted
1333 cancelWaiter(WNode node, WNode group, boolean interrupted) argument
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DThread.java309 * if any thread has interrupted the current thread. The
310 * <i>interrupted status</i> of the current thread is
339 * if any thread has interrupted the current thread. The
340 * <i>interrupted status</i> of the current thread is
358 // ...but we still have to handle being interrupted.
359 if (Thread.interrupted()) {
932 * Tests whether the current thread has been interrupted. The
933 * <i>interrupted status</i> of the thread is cleared by this method. In
936 * interrupted again, after the first call had cleared its interrupted
949 public static native boolean interrupted(); method in class:Thread
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DCompletableFuture.java348 if (r == null) // by convention below, null means interrupted
1692 boolean interrupted; field in class:CompletableFuture.Signaller
1710 if (Thread.interrupted())
1711 interrupted = true;
1712 return ((interrupted && interruptible) ||
1732 * interrupted.
1752 q.interrupted = true;
1754 if (q.interrupted && interruptible)
1760 if (q.interrupted) {
1773 * Returns raw result after waiting, or null if interrupted, o
[all...]

Completed in 478 milliseconds