Home
last modified time | relevance | path

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

1234

/libcore/luni/src/main/java/java/lang/
DThreadLocal.java53 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/
DThread.java403 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 …]
DThreadGroup.java79 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/
DThreadTest.java32 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()
DOldAndroidMonitorTest.java128 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/
DThreadTest.java86 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/
DReentrantLock.java101 final Thread current = Thread.currentThread(); in nonfairTryAcquire()
121 if (Thread.currentThread() != getExclusiveOwnerThread()) in tryRelease()
135 return getExclusiveOwnerThread() == Thread.currentThread(); in isHeldExclusively()
178 setExclusiveOwnerThread(Thread.currentThread()); in lock()
203 final Thread current = Thread.currentThread(); in tryAcquire()
DLockSupport.java155 Thread t = Thread.currentThread(); in park()
195 Thread t = Thread.currentThread(); in parkNanos()
236 Thread t = Thread.currentThread(); in parkUntil()
DReentrantReadWriteLock.java251 final long tid = Thread.currentThread().getId();
364 Thread current = Thread.currentThread(); in tryAcquire()
385 Thread current = Thread.currentThread(); in tryReleaseShared()
436 Thread current = Thread.currentThread(); in tryAcquireShared()
528 Thread current = Thread.currentThread(); in tryWriteLock()
549 Thread current = Thread.currentThread(); in tryReadLock()
580 return getExclusiveOwnerThread() == Thread.currentThread(); in isHeldExclusively()
612 Thread current = Thread.currentThread(); in getReadHoldCount()
/libcore/luni/src/main/java/java/nio/channels/spi/
DAbstractInterruptibleChannel.java92 Thread.currentThread().pushInterruptAction$(interruptAndCloseRunnable); in begin()
110 Thread.currentThread().popInterruptAction$(interruptAndCloseRunnable); in end()
DAbstractSelector.java115 Thread.currentThread().pushInterruptAction$(wakeupRunnable); in begin()
123 Thread.currentThread().popInterruptAction$(wakeupRunnable); in end()
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadTest.java28 Thread current = Thread.currentThread(); in testGetAndSetUncaughtExceptionHandler()
51 Thread current = Thread.currentThread(); in testGetAndSetDefaultUncaughtExceptionHandler()
DPhaserTest.java455 Thread.currentThread().interrupt();
472 Thread.currentThread().interrupt();
509 Thread.currentThread().interrupt();
513 assertTrue(Thread.currentThread().isInterrupted());
523 Thread.currentThread().interrupt();
540 assertFalse(Thread.currentThread().isInterrupted());
552 Thread.currentThread().interrupt();
567 Thread.currentThread().interrupt();
570 assertTrue(Thread.currentThread().isInterrupted());
572 assertTrue(Thread.currentThread().isInterrupted());
[all …]
DLockSupportTest.java178 } while (! Thread.currentThread().isInterrupted()); in testParkBeforeInterrupt()
216 assertTrue(Thread.currentThread().isInterrupted()); in testParkAfterInterrupt()
218 assertTrue(Thread.currentThread().isInterrupted()); in testParkAfterInterrupt()
283 Thread t = Thread.currentThread(); in testGetBlocker()
290 } while (! Thread.currentThread().isInterrupted()); in testGetBlocker()
DExecutorsTest.java286 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testDefaultThreadFactory()
291 Thread current = Thread.currentThread(); in testDefaultThreadFactory()
329 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testPrivilegedThreadFactory()
330 final ClassLoader thisccl = Thread.currentThread().getContextClassLoader(); in testPrivilegedThreadFactory()
334 Thread current = Thread.currentThread(); in testPrivilegedThreadFactory()
DCountDownLatchTest.java108 Thread.currentThread().interrupt(); in testAwait_Interruptible()
139 Thread.currentThread().interrupt(); in testTimedAwait_Interruptible()
/libcore/luni/src/main/java/java/util/concurrent/
DForkJoinTask.java311 Thread.currentThread().interrupt(); in externalAwaitDone()
354 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doJoin()
369 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doInvoke()
414 this.thrower = Thread.currentThread().getId(); in ExceptionNode()
546 if (false && e.thrower != Thread.currentThread().getId()) { in getThrowableException()
659 if ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) in fork()
960 int s = (Thread.currentThread() instanceof ForkJoinWorkerThread) ? in get()
996 Thread t = Thread.currentThread(); in get()
1087 if ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) { in helpQuiesce()
1126 Thread t = Thread.currentThread(); in getPool()
[all …]
DExecutors.java478 this.ccl = Thread.currentThread().getContextClassLoader();
486 Thread t = Thread.currentThread();
518 Thread.currentThread().getThreadGroup();
558 this.ccl = Thread.currentThread().getContextClassLoader();
566 Thread.currentThread().setContextClassLoader(ccl);
DFutureTask.java229 null, Thread.currentThread())) in run()
271 null, Thread.currentThread())) in runAndReset()
328 WaitNode() { thread = Thread.currentThread(); } in WaitNode()
/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/main/java/java/io/
DPipedInputStream.java223 lastReader = Thread.currentThread(); in read()
301 lastReader = Thread.currentThread(); in read()
387 lastWriter = Thread.currentThread();
DPipedReader.java240 lastReader = Thread.currentThread(); in read()
348 lastWriter = Thread.currentThread(); in receive()
396 lastWriter = Thread.currentThread(); in receive()
/libcore/libart/src/main/java/sun/misc/
DUnsafe.java297 Thread.currentThread().parkUntil(time); in park()
299 Thread.currentThread().parkFor(time); in park()
/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()

1234