/libcore/luni/src/main/java/java/lang/ |
D | ThreadLocal.java | 53 Thread currentThread = Thread.currentThread(); in get() local 54 Values values = values(currentThread); in get() 62 values = initializeValues(currentThread); in get() 86 Thread currentThread = Thread.currentThread(); in set() local 87 Values values = values(currentThread); in set() 89 values = initializeValues(currentThread); in set() 103 Thread currentThread = Thread.currentThread(); in remove() local 104 Values values = values(currentThread); in remove()
|
/libcore/libart/src/main/java/java/lang/ |
D | Thread.java | 403 Thread currentThread = Thread.currentThread(); in create() local 405 group = currentThread.getThreadGroup(); in create() 427 this.priority = currentThread.getPriority(); in create() 429 this.contextClassLoader = currentThread.contextClassLoader; in create() 432 if (currentThread.inheritableValues != null) { in create() 433 inheritableValues = new ThreadLocal.Values(currentThread.inheritableValues); in create() 447 return currentThread().getThreadGroup().activeCount(); in activeCount() 472 public static native Thread currentThread(); in currentThread() method in Thread 504 Thread thread = Thread.currentThread(); in enumerate() 1026 Object lock = currentThread().lock; in sleep() [all …]
|
D | ThreadGroup.java | 79 this(Thread.currentThread().getThreadGroup(), name); in ThreadGroup() 609 Thread.currentThread().stop(); in stop() 617 Thread current = Thread.currentThread(); in stopHelper() 647 Thread.currentThread().suspend(); in suspend() 655 Thread current = Thread.currentThread(); in suspendHelper()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ThreadTest.java | 32 Thread.currentThread().getContextClassLoader()); in testJavaContextClassLoader() 74 Thread.currentThread().interrupt(); in testThreadInterrupted() 79 assertFalse(Thread.currentThread().isInterrupted()); in testThreadInterrupted() 120 assertNotNull(Thread.currentThread().getContextClassLoader()); in testContextClassLoaderIsNotNull() 125 assertSame(Thread.currentThread().getContextClassLoader(), other.getContextClassLoader()); in testContextClassLoaderIsInherited()
|
D | OldAndroidMonitorTest.java | 127 Thread.currentThread().sleep(500); in run_inner() 270 testThread = Thread.currentThread(); in testInterruptTest() 300 String threadName = Thread.currentThread().getName(); in deepWait() 355 Thread.currentThread().sleep(1000); in testNestedMonitors()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ThreadTest.java | 86 while (!Thread.currentThread().isInterrupted()) { in run() 266 Thread.currentThread().countStackFrames(); in test_countStackFrames() 273 assertNotNull(Thread.currentThread()); in test_currentThread() 378 t.getContextClassLoader() == Thread.currentThread() in test_getContextClassLoader() 481 ct = new ChildThread1(Thread.currentThread(), "Interrupt Test1", in test_interrupt() 494 ct = new ChildThread1(Thread.currentThread(), "Interrupt Test2", in test_interrupt() 515 Thread.currentThread().interrupt(); in test_interrupted() 565 while (!Thread.currentThread().isInterrupted()) in test_isInterrupted() 656 final Thread main = Thread.currentThread(); in test_joinJ() 709 final Thread main = Thread.currentThread(); in test_joinJI() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
D | ReentrantLock.java | 102 final Thread current = Thread.currentThread(); in nonfairTryAcquire() 122 if (Thread.currentThread() != getExclusiveOwnerThread()) in tryRelease() 136 return getExclusiveOwnerThread() == Thread.currentThread(); in isHeldExclusively() 179 setExclusiveOwnerThread(Thread.currentThread()); in lock() 204 final Thread current = Thread.currentThread(); in tryAcquire()
|
D | LockSupport.java | 156 Thread t = Thread.currentThread(); in park() 196 Thread t = Thread.currentThread(); in parkNanos() 237 Thread t = Thread.currentThread(); in parkUntil()
|
D | ReentrantReadWriteLock.java | 252 final long tid = Thread.currentThread().getId(); 365 Thread current = Thread.currentThread(); in tryAcquire() 386 Thread current = Thread.currentThread(); in tryReleaseShared() 437 Thread current = Thread.currentThread(); in tryAcquireShared() 529 Thread current = Thread.currentThread(); in tryWriteLock() 550 Thread current = Thread.currentThread(); in tryReadLock() 581 return getExclusiveOwnerThread() == Thread.currentThread(); in isHeldExclusively() 613 Thread current = Thread.currentThread(); in getReadHoldCount()
|
/libcore/luni/src/main/java/java/nio/channels/spi/ |
D | AbstractInterruptibleChannel.java | 92 Thread.currentThread().pushInterruptAction$(interruptAndCloseRunnable); in begin() 110 Thread.currentThread().popInterruptAction$(interruptAndCloseRunnable); in end()
|
D | AbstractSelector.java | 115 Thread.currentThread().pushInterruptAction$(wakeupRunnable); in begin() 123 Thread.currentThread().popInterruptAction$(wakeupRunnable); in end()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ForkJoinTask.java | 305 Thread.currentThread().interrupt(); in externalAwaitDone() 348 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doJoin() 363 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doInvoke() 409 this.thrower = Thread.currentThread().getId(); in ExceptionNode() 542 if (false && e.thrower != Thread.currentThread().getId()) { in getThrowableException() 655 if ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) in fork() 956 int s = (Thread.currentThread() instanceof ForkJoinWorkerThread) ? in get() 992 Thread t = Thread.currentThread(); in get() 1083 if ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) { in helpQuiesce() 1122 Thread t = Thread.currentThread(); in getPool() [all …]
|
D | Executors.java | 479 this.ccl = Thread.currentThread().getContextClassLoader(); 487 Thread t = Thread.currentThread(); 519 Thread.currentThread().getThreadGroup(); 559 this.ccl = Thread.currentThread().getContextClassLoader(); 567 Thread.currentThread().setContextClassLoader(ccl);
|
D | FutureTask.java | 229 !U.compareAndSwapObject(this, RUNNER, null, Thread.currentThread())) in run() 270 !U.compareAndSwapObject(this, RUNNER, null, Thread.currentThread())) in runAndReset() 327 WaitNode() { thread = Thread.currentThread(); } in WaitNode()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | PhaserTest.java | 466 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()); 583 assertTrue(Thread.currentThread().isInterrupted()); [all …]
|
D | LockSupportTest.java | 190 } while (! Thread.currentThread().isInterrupted()); in testParkBeforeInterrupt() 228 assertTrue(Thread.currentThread().isInterrupted()); in testParkAfterInterrupt() 230 assertTrue(Thread.currentThread().isInterrupted()); in testParkAfterInterrupt() 295 Thread t = Thread.currentThread(); in testGetBlocker() 302 } while (! Thread.currentThread().isInterrupted()); in testGetBlocker()
|
D | ThreadTest.java | 38 Thread current = Thread.currentThread(); in testGetAndSetUncaughtExceptionHandler()
|
D | ExecutorsTest.java | 308 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testDefaultThreadFactory() 313 Thread current = Thread.currentThread(); in testDefaultThreadFactory() 351 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testPrivilegedThreadFactory() 352 final ClassLoader thisccl = Thread.currentThread().getContextClassLoader(); in testPrivilegedThreadFactory() 357 Thread current = Thread.currentThread(); in testPrivilegedThreadFactory()
|
D | CountDownLatchTest.java | 119 Thread.currentThread().interrupt(); in testAwait_Interruptible() 150 Thread.currentThread().interrupt(); in testTimedAwait_Interruptible()
|
/libcore/luni/src/main/java/javax/xml/xpath/ |
D | XPathFactory.java | 143 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in newInstance() 179 classLoader = Thread.currentThread().getContextClassLoader(); in newInstance()
|
/libcore/luni/src/main/java/java/io/ |
D | PipedInputStream.java | 223 lastReader = Thread.currentThread(); in read() 301 lastReader = Thread.currentThread(); in read() 387 lastWriter = Thread.currentThread();
|
D | PipedReader.java | 240 lastReader = Thread.currentThread(); in read() 348 lastWriter = Thread.currentThread(); in receive() 396 lastWriter = Thread.currentThread(); in receive()
|
/libcore/libart/src/main/java/sun/misc/ |
D | Unsafe.java | 297 Thread.currentThread().parkUntil$(time); in park() 299 Thread.currentThread().parkFor$(time); in park()
|
/libcore/luni/src/main/java/javax/xml/validation/ |
D | SchemaFactory.java | 182 cl = Thread.currentThread().getContextClassLoader(); in newInstance() 212 classLoader = Thread.currentThread().getContextClassLoader(); in newInstance()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | NewInstance.java | 70 return (ClassLoader) m.invoke(Thread.currentThread()); in getClassLoader()
|