Home
last modified time | relevance | path

Searched refs:isInterrupted (Results 1 – 25 of 27) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/misc/
DResource.java96 boolean isInterrupted = Thread.interrupted(); in getBytes()
104 isInterrupted = true; in getBytes()
127 isInterrupted = true; in getBytes()
145 isInterrupted = true; in getBytes()
148 if (isInterrupted) { in getBytes()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DLockSupportTest.java220 } while (! Thread.currentThread().isInterrupted()); in testParkBeforeInterrupt()
258 assertTrue(Thread.currentThread().isInterrupted()); in testParkAfterInterrupt()
260 assertTrue(Thread.currentThread().isInterrupted()); in testParkAfterInterrupt()
332 } while (! Thread.currentThread().isInterrupted()); in testGetBlocker()
DPhaserTest.java548 assertTrue(Thread.currentThread().isInterrupted());
575 assertFalse(Thread.currentThread().isInterrupted());
605 assertTrue(Thread.currentThread().isInterrupted());
629 assertFalse(Thread.currentThread().isInterrupted());
/libcore/jsr166-tests/src/test/java/jsr166/
DLockSupportTest.java196 } while (! Thread.currentThread().isInterrupted()); in testParkBeforeInterrupt()
234 assertTrue(Thread.currentThread().isInterrupted()); in testParkAfterInterrupt()
236 assertTrue(Thread.currentThread().isInterrupted()); in testParkAfterInterrupt()
308 } while (! Thread.currentThread().isInterrupted()); in testGetBlocker()
DRecursiveActionTest.java270 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
280 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
293 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
306 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
316 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
325 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
372 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterruptsOutsideForkJoinPool()
380 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterruptsOutsideForkJoinPool()
391 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterruptsOutsideForkJoinPool()
404 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterruptsOutsideForkJoinPool()
[all …]
DPhaserTest.java524 assertTrue(Thread.currentThread().isInterrupted());
551 assertFalse(Thread.currentThread().isInterrupted());
581 assertTrue(Thread.currentThread().isInterrupted());
605 assertFalse(Thread.currentThread().isInterrupted());
DForkJoinPool8Test.java281 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
291 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
304 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
317 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
327 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
336 assertTrue(myself.isInterrupted()); in testJoinIgnoresInterrupts()
/libcore/ojluni/src/main/java/java/util/concurrent/
DExchanger.java395 else if (!t.isInterrupted() && m == 0 && in arenaExchange()
456 if (t.isInterrupted()) // preserve interrupt status so caller can recheck in slotExchange()
499 else if (!t.isInterrupted() && arena == null && in slotExchange()
511 v = timed && ns <= 0L && !t.isInterrupted() ? TIMED_OUT : null; in slotExchange()
DSynchronousQueue.java284 return match != null || Thread.currentThread().isInterrupted(); in isReleasable()
379 w.isInterrupted()) { in transfer()
558 Thread.currentThread().isInterrupted(); in isReleasable()
678 w.isInterrupted()) { in transfer()
DThreadPoolExecutor.java677 if (getState() >= 0 && (t = thread) != null && !t.isInterrupted()) { in interruptIfStarted()
806 if (!t.isInterrupted() && w.tryLock()) { in interruptIdleWorkers()
1140 !wt.isInterrupted()) in runWorker()
DLinkedTransferQueue.java466 Thread.currentThread().isInterrupted(); in isReleasable()
645 else if ((timed && nanos <= 0L) || w.isInterrupted()) { in awaitMatch()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractInterruptibleChannel.java170 if (me.isInterrupted()) in begin()
DAbstractSelector.java218 if (me.isInterrupted()) in begin()
/libcore/luni/src/test/java/tests/support/
DThreadPool.java97 while (!isInterrupted()) { in run()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java86 while (!Thread.currentThread().isInterrupted()) { in run()
572 while (!Thread.currentThread().isInterrupted()) in test_isInterrupted()
585 .isInterrupted()); in test_isInterrupted()
588 .isInterrupted()); in test_isInterrupted()
/libcore/ojluni/src/test/java/nio/channels/Selector/
DSelectWithConsumer.java375 assertTrue(Thread.currentThread().isInterrupted()); in testInterruptBeforeSelect()
389 assertTrue(Thread.currentThread().isInterrupted()); in testInterruptBeforeSelect()
405 assertTrue(Thread.currentThread().isInterrupted());
418 assertTrue(Thread.currentThread().isInterrupted()); in try()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSelectorTest.java62 assertTrue(Thread.currentThread().isInterrupted()); in testInterrupted()
DFileIOInterruptTest.java697 assertFalse(Thread.currentThread().isInterrupted()); in waitToDie()
710 assertFalse(Thread.currentThread().isInterrupted()); in delay()
/libcore/ojluni/annotations/mmodule/java/lang/
DThread.annotated.java80 public native boolean isInterrupted(); in isInterrupted() method in Thread
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DThread.annotated.java80 public native boolean isInterrupted(); in isInterrupted() method in Thread
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThread.java161 public native boolean isInterrupted(); in isInterrupted() method in Thread
/libcore/luni/src/test/java/libcore/java/lang/
DThreadTest.java114 assertFalse(Thread.currentThread().isInterrupted()); in threadInterrupted()
/libcore/ojluni/src/main/java/java/lang/
DThread.java1210 public native boolean isInterrupted(); in isInterrupted() method in Thread
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedSynchronizer.java502 return status <= 1 || Thread.currentThread().isInterrupted(); in isReleasable()
DAbstractQueuedLongSynchronizer.java137 return status <= 1 || Thread.currentThread().isInterrupted(); in isReleasable()

12