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

/dalvik/libcore/nio/src/main/java/java/nio/channels/spi/
H A DAbstractInterruptibleChannel.java66 volatile boolean interrupted = false; field in class:AbstractInterruptibleChannel
127 interrupted = true;
164 if (interrupted) {
165 interrupted = false;
/dalvik/vm/native/
H A Djava_lang_VMThread.c118 * static boolean interrupted()
120 * Determine if the current thread has been interrupted. Clears the flag.
126 bool interrupted; local
130 interrupted = self->interrupted;
131 self->interrupted = false;
132 RETURN_BOOLEAN(interrupted);
138 * Determine if the specified thread has been interrupted. Does not clear
146 bool interrupted; local
151 interrupted
[all...]
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/locks/
H A DAbstractQueuedSynchronizer.java785 * Convenience method to park and then check if interrupted
787 * @return {@code true} if interrupted
791 return Thread.interrupted();
809 * @return {@code true} if interrupted while waiting
814 boolean interrupted = false;
821 return interrupted;
825 interrupted = true;
889 if (Thread.interrupted())
906 boolean interrupted = false;
914 if (interrupted)
[all...]
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
H A DExchanger.java306 * @return the other thread's item, or CANCEL if interrupted or timed out
425 * in public exchange method to abort if interrupted on entry.
445 * filled in by another thread. Fails if interrupted before
480 * thread. Fails if timed out or interrupted before hole filled.
557 * the current thread is {@linkplain Thread#interrupt interrupted}),
576 * <li>has its interrupted status set on entry to this method; or
577 * <li>is {@linkplain Thread#interrupt interrupted} while waiting
581 * interrupted status is cleared.
586 * interrupted while waiting
589 if (!Thread.interrupted()) {
[all...]
H A DCyclicBarrier.java88 * {@link InterruptedException} if they too were interrupted at about
173 if (Thread.interrupted()) {
194 // loop until tripped, broken, interrupted, or timed out
207 // been interrupted, so this interrupt is deemed to
289 * <li>has its interrupted status set on entry to this method; or
290 * <li>is {@linkplain Thread#interrupt interrupted} while waiting
293 * interrupted status is cleared.
300 * <p>If any thread is {@linkplain Thread#interrupt interrupted} while waiting,
316 * @throws InterruptedException if the current thread was interrupted
319 * interrupted o
[all...]
H A DSynchronousQueue.java149 * by checking Thread.interrupted.
811 Thread.interrupted();
830 if (!Thread.interrupted())
860 Thread.interrupted();
875 if (e != null || !Thread.interrupted())
H A DThreadPoolExecutor.java416 * that have not yet interrupted. It also simplifies some of the
710 * most one waiting worker is interrupted to propagate shutdown
759 Thread.interrupted() &&
/dalvik/libcore/luni/src/main/java/java/lang/
H A DVMThread.java34 static native boolean interrupted(); method in class:VMThread
/dalvik/tests/050-sync-test/src/
H A DMain.java155 // Expecting this; interrupted should be false.
157 " interrupted, flag=" + Thread.interrupted());
/dalvik/libcore/luni/src/test/java/tests/api/java/net/
H A DServerSocketTest.java53 boolean interrupted; field in class:ServerSocketTest
341 interrupted = false;
349 interrupted = true;
369 if (interrupted) {
370 fail("accept interrupted");
377 interrupted = false;
384 interrupted = true;
386 assertTrue("accept not interrupted", interrupted);
H A DDatagramSocketTest.java65 boolean interrupted; field in class:DatagramSocketTest
1107 interrupted = false;
1115 interrupted = true;
1135 if (interrupted) {
1143 interrupted = false;
1154 interrupted = true;
1174 if (interrupted) {
1175 fail("receive2 was interrupted");
1182 interrupted = false;
1189 interrupted
[all...]
H A DSocketTest.java60 boolean interrupted = false; field in class:SocketTest
2016 // now validate that we get a interrupted exception if we try to connect
2023 fail("No interrupted exception when connecting to address nobody listening on with short timeout 200: ");
2031 // now validate that we get a interrupted exception if we try to connect
2038 fail("No interrupted exception when connecting to address nobody listening on with short timeout 40: ");
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
H A DThreadTest.java737 boolean interrupted = false;
746 interrupted = true;
748 assertTrue("Failed to Interrupt thread1", interrupted);
750 interrupted = false;
761 interrupted = true;
763 assertTrue("Failed to Interrupt thread2", interrupted);
788 * @tests java.lang.Thread#interrupted()
793 method = "interrupted",
797 assertFalse("Interrupted returned true for non-interrupted thread", Thread
798 .interrupted());
[all...]
H A DThreadGroupTest.java397 fail("Should not be interrupted");
417 fail("Should not be interrupted");
628 fail("Should not be interrupted");
650 fail("Should not be interrupted");
671 fail("Should not be interrupted");
833 private static boolean interrupted = false; field in class:ThreadGroupTest
853 assertFalse("Incorrect state of thread", interrupted);
855 assertFalse("Incorrect state of thread", interrupted);
861 assertTrue("Incorrect state of thread", interrupted);
1449 fail("Should not have been interrupted");
[all...]
/dalvik/vm/
H A DSync.c113 * threads may be getting interrupted or notified at any given time.
663 * Otherwise, we set the "interrupted" flag.
751 * Handle the case where the thread was interrupted before we called
754 if (self->interrupted) {
778 if (self->interrupted) {
782 self->interrupted = false;
806 * We were interrupted while waiting, or somebody interrupted an
809 * The doc sayeth: "The interrupted status of the current thread is
812 self->interrupted
[all...]
H A DThread.h186 /* mutex to guard the interrupted and the waitMonitor members */
194 /* thread "interrupted" status; stays raised until queried or thrown */
196 bool interrupted; member in struct:Thread
457 * is interrupted.
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
H A DThread.java878 * @see Thread#interrupted
909 public static boolean interrupted() { method in class:Thread
910 return VMThread.interrupted();
951 * @see Thread#interrupted
/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/
H A DReentrantLockTest.java41 * interrupted
876 public volatile boolean interrupted = false; field in class:ReentrantLockTest.UninterruptableThread
892 interrupted = isInterrupted();
922 assertTrue(thread.interrupted);
H A DReentrantReadWriteLockTest.java41 * interrupted
972 public volatile boolean interrupted = false; field in class:ReentrantReadWriteLockTest.UninterruptableThread
988 interrupted = isInterrupted();
1018 assertTrue(thread.interrupted);

Completed in 670 milliseconds