Home
last modified time | relevance | path

Searched refs:currentThread (Results 1 – 25 of 122) sorted by relevance

12345

/libcore/ojluni/src/main/java/java/io/
DSerialCallbackContext.java51 this.thread = Thread.currentThread(); in SerialCallbackContext()
64 if (thread != null && thread != Thread.currentThread()) { in check()
66 "expected thread: " + thread + ", but got: " + Thread.currentThread()); in check()
71 if (thread != Thread.currentThread()) { in checkAndSetUsed()
DPrintStream.java478 Thread.currentThread().interrupt(); in write()
509 Thread.currentThread().interrupt(); in write()
539 Thread.currentThread().interrupt(); in write()
560 Thread.currentThread().interrupt(); in write()
581 Thread.currentThread().interrupt(); in newLine()
1002 Thread.currentThread().interrupt(); in format()
1059 Thread.currentThread().interrupt(); in format()
DPrintWriter.java409 Thread.currentThread().interrupt(); in write()
430 Thread.currentThread().interrupt(); in write()
460 Thread.currentThread().interrupt(); in write()
486 Thread.currentThread().interrupt(); in newLine()
910 Thread.currentThread().interrupt(); in format()
969 Thread.currentThread().interrupt(); in format()
DPipedInputStream.java205 writeSide = Thread.currentThread(); in receive()
230 writeSide = Thread.currentThread(); in receive()
318 readSide = Thread.currentThread(); in read()
DPipedReader.java179 writeSide = Thread.currentThread(); in receive()
247 readSide = Thread.currentThread(); in read()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java86 while (!Thread.currentThread().isInterrupted()) { in run()
267 Thread.currentThread().countStackFrames(); in test_countStackFrames()
274 assertNotNull(Thread.currentThread()); in test_currentThread()
379 t.getContextClassLoader() == Thread.currentThread() in test_getContextClassLoader()
482 ct = new ChildThread1(Thread.currentThread(), "Interrupt Test1", in test_interrupt()
495 ct = new ChildThread1(Thread.currentThread(), "Interrupt Test2", in test_interrupt()
516 Thread.currentThread().interrupt(); in test_interrupted()
551 assertEquals(Thread.currentThread().isDaemon(), st.isDaemon()); in test_isDaemon()
571 while (!Thread.currentThread().isInterrupted()) in test_isInterrupted()
662 final Thread main = Thread.currentThread(); in test_joinJ()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DLockSupport.java188 Thread t = Thread.currentThread(); in park()
228 Thread t = Thread.currentThread(); in parkNanos()
269 Thread t = Thread.currentThread(); in parkUntil()
396 Thread t = Thread.currentThread(); in nextSecondarySeed()
DReentrantLock.java133 final Thread current = Thread.currentThread(); in nonfairTryAcquire()
155 if (Thread.currentThread() != getExclusiveOwnerThread()) in tryRelease()
169 return getExclusiveOwnerThread() == Thread.currentThread(); in isHeldExclusively()
214 setExclusiveOwnerThread(Thread.currentThread()); in lock()
241 final Thread current = Thread.currentThread(); in tryAcquire()
DReentrantReadWriteLock.java281 final long tid = getThreadId(Thread.currentThread());
394 Thread current = Thread.currentThread(); in tryAcquire()
415 Thread current = Thread.currentThread(); in tryReleaseShared()
466 Thread current = Thread.currentThread(); in tryAcquireShared()
558 Thread current = Thread.currentThread(); in tryWriteLock()
579 Thread current = Thread.currentThread(); in tryReadLock()
610 return getExclusiveOwnerThread() == Thread.currentThread(); in isHeldExclusively()
642 Thread current = Thread.currentThread(); in getReadHoldCount()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFileSystemsTest.java103 Thread.currentThread().getContextClassLoader()); in test_newFileSystem$URI$Map$ClassLoader()
109 Thread.currentThread().getContextClassLoader()); in test_newFileSystem$URI$Map$ClassLoader()
124 Thread.currentThread().getContextClassLoader().loadClass("mypackage.MockFileSystem"); in test_newFileSystem$URI$Map$ClassLoader_customClassLoader()
142 FileSystems.newFileSystem(testPath, Thread.currentThread().getContextClassLoader()); in test_newFileSystem$Path$ClassLoader()
147 FileSystems.newFileSystem(null, Thread.currentThread().getContextClassLoader()); in test_newFileSystem$Path$ClassLoader()
161 Thread.currentThread().getContextClassLoader().loadClass( in test_newFileSystem$Path$ClassLoader_customClassLoader()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractInterruptibleChannel.java172 Thread me = Thread.currentThread(); in begin()
201 if (interrupted != null && interrupted == Thread.currentThread()) { in end()
213 Thread.currentThread().blockedOn(intr); in blockedOn()
/libcore/dalvik/test-rules/src/main/java/libcore/dalvik/system/
DCloseGuardSupport.java159 private final Thread testThread = Thread.currentThread();
163 if (Thread.currentThread() == testThread) {
261 private final Thread callingThread = Thread.currentThread();
269 if (callingThread == Thread.currentThread()) {
277 if (callingThread == Thread.currentThread()) {
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinTask.java341 Thread.currentThread().interrupt(); in externalAwaitDone()
383 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doJoin()
398 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doInvoke()
446 this.thrower = Thread.currentThread().getId(); in ExceptionNode()
578 if (e.thrower != Thread.currentThread().getId()) { in getThrowableException()
691 if ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) in fork()
992 int s = (Thread.currentThread() instanceof ForkJoinWorkerThread) ? in get()
1024 Thread t = Thread.currentThread(); in get()
1089 if ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) { in helpQuiesce()
1130 Thread t = Thread.currentThread(); in getPool()
[all …]
DExecutors.java520 this.ccl = Thread.currentThread().getContextClassLoader();
528 Thread t = Thread.currentThread();
560 Thread.currentThread().getThreadGroup();
601 this.ccl = Thread.currentThread().getContextClassLoader();
609 Thread.currentThread().setContextClassLoader(ccl);
DThreadLocalRandom.java161 Thread t = Thread.currentThread(); in localInit()
172 if (U.getInt(Thread.currentThread(), PROBE) == 0) in current()
191 U.putLong(t = Thread.currentThread(), SEED, in nextSeed()
929 return U.getInt(Thread.currentThread(), PROBE); in getProbe()
940 U.putInt(Thread.currentThread(), PROBE, probe); in advanceProbe()
949 Thread t = Thread.currentThread(); in nextSecondarySeed()
985 fields.put("rnd", U.getLong(Thread.currentThread(), SEED)); in writeObject()
DFutureTask.java258 !U.compareAndSwapObject(this, RUNNER, null, Thread.currentThread())) in run()
299 !U.compareAndSwapObject(this, RUNNER, null, Thread.currentThread())) in runAndReset()
356 WaitNode() { thread = Thread.currentThread(); } in WaitNode()
/libcore/jsr166-tests/src/test/java/jsr166/
DPhaserTest.java466 Thread.currentThread().interrupt();
483 Thread.currentThread().interrupt();
520 Thread.currentThread().interrupt();
524 assertTrue(Thread.currentThread().isInterrupted());
534 Thread.currentThread().interrupt();
551 assertFalse(Thread.currentThread().isInterrupted());
563 Thread.currentThread().interrupt();
578 Thread.currentThread().interrupt();
581 assertTrue(Thread.currentThread().isInterrupted());
588 Thread.currentThread().interrupt();
[all …]
DLockSupportTest.java196 } while (! Thread.currentThread().isInterrupted()); in testParkBeforeInterrupt()
234 assertTrue(Thread.currentThread().isInterrupted()); in testParkAfterInterrupt()
236 assertTrue(Thread.currentThread().isInterrupted()); in testParkAfterInterrupt()
301 Thread t = Thread.currentThread(); in testGetBlocker()
308 } while (! Thread.currentThread().isInterrupted()); in testGetBlocker()
DExecutorsTest.java308 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testDefaultThreadFactory()
313 Thread current = Thread.currentThread(); in testDefaultThreadFactory()
345 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testPrivilegedThreadFactory()
346 final ClassLoader thisccl = Thread.currentThread().getContextClassLoader(); in testPrivilegedThreadFactory()
351 Thread current = Thread.currentThread(); in testPrivilegedThreadFactory()
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactory.java143 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in newInstance()
179 classLoader = Thread.currentThread().getContextClassLoader(); in newInstance()
/libcore/luni/src/test/java/libcore/java/lang/
DThreadTest.java51 Thread.currentThread().getContextClassLoader()); in testJavaContextClassLoader()
93 Thread.currentThread().interrupt(); in testThreadInterrupted()
98 assertFalse(Thread.currentThread().isInterrupted()); in testThreadInterrupted()
139 assertNotNull(Thread.currentThread().getContextClassLoader()); in testContextClassLoaderIsNotNull()
144 assertSame(Thread.currentThread().getContextClassLoader(), other.getContextClassLoader()); in testContextClassLoaderIsInherited()
396 final Thread current = Thread.currentThread(); in testParkUntilWithUnderflowValue()
/libcore/ojluni/src/main/java/java/lang/
DThread.java319 public static native Thread currentThread(); in currentThread() method in Thread
442 Object lock = currentThread().lock; in sleep()
487 Thread parent = currentThread(); in init()
683 init2(currentThread()); in Thread()
1051 if (this != Thread.currentThread()) in interrupt()
1351 return currentThread().getThreadGroup().activeCount(); in activeCount()
1381 return currentThread().getThreadGroup().enumerate(tarray); in enumerate()
/libcore/ojluni/src/main/java/java/util/logging/
DLogRecord.java147 long tid = Thread.currentThread().getId(); in defaultThreadID()
539 Thread.currentThread().getContextClassLoader()); in readObject()
560 StackTraceElement[] stack = VMStack.getThreadStackTrace(Thread.currentThread()); in inferCaller()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactory.java182 cl = Thread.currentThread().getContextClassLoader(); in newInstance()
212 classLoader = Thread.currentThread().getContextClassLoader(); in newInstance()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DNewInstance.java70 return (ClassLoader) m.invoke(Thread.currentThread()); in getClassLoader()

12345