Home
last modified time | relevance | path

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

1234

/libcore/luni/src/main/java/java/lang/
DThreadLocal.java59 Thread currentThread = Thread.currentThread(); in get() local
60 Values values = values(currentThread); in get()
68 values = initializeValues(currentThread); in get()
92 Thread currentThread = Thread.currentThread(); in set() local
93 Values values = values(currentThread); in set()
95 values = initializeValues(currentThread); in set()
109 Thread currentThread = Thread.currentThread(); in remove() local
110 Values values = values(currentThread); in remove()
DLangAccessImpl.java48 Thread.currentThread().parkFor(nanos); in parkFor()
53 Thread.currentThread().parkUntil(time); in parkUntil()
DThread.java463 Thread currentThread = Thread.currentThread(); in create() local
465 group = currentThread.getThreadGroup(); in create()
488 this.priority = currentThread.getPriority(); in create()
490 this.contextClassLoader = currentThread.contextClassLoader; in create()
493 if (currentThread.inheritableValues != null) { in create()
495 = new ThreadLocal.Values(currentThread.inheritableValues); in create()
512 return currentThread().getThreadGroup().activeCount(); in activeCount()
556 public static Thread currentThread() { in currentThread() method in Thread
557 return VMThread.currentThread(); in currentThread()
596 Thread thread = Thread.currentThread(); in enumerate()
[all …]
DThreadGroup.java95 this(Thread.currentThread().getThreadGroup(), name); in ThreadGroup()
112 if (Thread.currentThread() != null) { in ThreadGroup()
750 Thread.currentThread().stop(); in stop()
765 Thread current = Thread.currentThread(); in stopHelper()
799 Thread.currentThread().suspend(); in suspend()
814 Thread current = Thread.currentThread(); in suspendHelper()
DVMThread.java33 static native Thread currentThread(); in currentThread() method in VMThread
/libcore/luni/src/main/java/java/util/concurrent/locks/
DLockSupport.java155 Thread t = Thread.currentThread(); in park()
195 Thread t = Thread.currentThread(); in parkNanos()
236 Thread t = Thread.currentThread(); in parkUntil()
DReentrantLock.java105 final Thread current = Thread.currentThread(); in nonfairTryAcquire()
125 if (Thread.currentThread() != getExclusiveOwnerThread()) in tryRelease()
139 return getExclusiveOwnerThread() == Thread.currentThread(); in isHeldExclusively()
183 setExclusiveOwnerThread(Thread.currentThread()); in lock()
208 final Thread current = Thread.currentThread(); in tryAcquire()
DReentrantReadWriteLock.java252 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/security/
DAccessController.java210 Thread currThread = Thread.currentThread(); in contextsForThread()
290 Thread currentThread = Thread.currentThread(); in getContext() local
291 if (currentThread == null || AccessController.contexts == null) { in getContext()
300 ? SecurityUtils.getContext(currentThread) in getContext()
/libcore/luni/src/test/java/tests/api/java/util/concurrent/
DThreadTest.java31 Thread current = Thread.currentThread(); in testGetAndSetUncaughtExceptionHandler()
50 Thread current = Thread.currentThread(); in testGetAndSetDefaultUncaughtExceptionHandler()
DThreadLocalTest.java68 Thread.currentThread().yield(); in run()
73 Thread.currentThread().yield(); in run()
DExecutorsTest.java258 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testDefaultThreadFactory()
262 Thread current = Thread.currentThread(); in testDefaultThreadFactory()
301 final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); in testPrivilegedThreadFactory()
302 final ClassLoader thisccl = Thread.currentThread().getContextClassLoader(); in testPrivilegedThreadFactory()
306 Thread current = Thread.currentThread(); in testPrivilegedThreadFactory()
/libcore/luni/src/main/java/java/nio/channels/spi/
DAbstractInterruptibleChannel.java123 setInterruptAction.invoke(Thread.currentThread(), in begin()
159 setInterruptAction.invoke(Thread.currentThread(), in end()
DAbstractSelector.java142 .currentThread(), new Object[] { new Runnable() { in begin()
163 .currentThread(), new Object[] { null }); in end()
/libcore/luni/src/main/java/java/io/
DPipedInputStream.java220 lastReader = Thread.currentThread(); in read()
314 lastReader = Thread.currentThread(); in read()
400 lastWriter = Thread.currentThread();
DPipedReader.java250 lastReader = Thread.currentThread(); in read()
361 lastWriter = Thread.currentThread(); in receive()
421 lastWriter = Thread.currentThread(); in receive()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DNewInstance.java70 return (ClassLoader) m.invoke(Thread.currentThread()); in getClassLoader()
/libcore/luni/src/main/java/java/util/concurrent/
DExecutors.java498 this.ccl = Thread.currentThread().getContextClassLoader();
507 Thread t = Thread.currentThread();
539 Thread.currentThread().getThreadGroup();
577 this.ccl = Thread.currentThread().getContextClassLoader();
585 Thread.currentThread().setContextClassLoader(ccl);
DFutureTask.java302 runner = Thread.currentThread(); in innerRun()
321 runner = Thread.currentThread(); in innerRunAndReset()
DExchanger.java373 long id = Thread.currentThread().getId(); in hashIndex()
463 Thread w = Thread.currentThread(); in await()
499 w = Thread.currentThread(); in awaitNanos()
/libcore/dalvik/src/test/java/dalvik/system/
DSamplingProfilerTest.java29 ThreadSet threadSet = SamplingProfiler.newArrayThreadSet(Thread.currentThread()); in test_SamplingProfiler_basic()
/libcore/luni/src/main/java/org/apache/xalan/extensions/
DObjectFactory.java52 return Thread.currentThread().getContextClassLoader(); in findClassLoader()
/libcore/luni/src/main/java/javax/net/ssl/
DSSLServerSocketFactory.java53 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in getDefault()
/libcore/luni/src/main/java/javax/xml/transform/
DTransformerFactory.java95 classLoader = Thread.currentThread().getContextClassLoader(); in newInstance()
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
DSSLSessionTest.java274 Thread.currentThread().sleep(1000); in setUp()
283 Thread.currentThread().sleep(500); in setUp()
533 Thread.currentThread().sleep(500); in run()
603 Thread.currentThread().sleep(500); in run()

1234