Home
last modified time | relevance | path

Searched refs:thread1 (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DReentrantReadWriteLockTest.java101 Thread thread1 = new Thread(new ReadLockRunnable(lock)); in testGetQueuedReaderThreads() local
105 thread1.start(); in testGetQueuedReaderThreads()
106 waitForQueuedThread(lock, thread1); in testGetQueuedReaderThreads()
107 assertTrue(lock.getQueuedReaderThreads().contains(thread1)); in testGetQueuedReaderThreads()
112 TestUtils.joinThreadOrFail(2000, thread1); in testGetQueuedReaderThreads()
120 Thread thread1 = new Thread(new WriteLockRunnable(lock)); in testGetQueuedWriterThreads() local
124 thread1.start(); in testGetQueuedWriterThreads()
125 waitForQueuedThread(lock, thread1); in testGetQueuedWriterThreads()
126 assertTrue(lock.getQueuedWriterThreads().contains(thread1)); in testGetQueuedWriterThreads()
131 TestUtils.joinThreadOrFail(2000, thread1); in testGetQueuedWriterThreads()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInetAddressThreadTest.java138 threadsafeTestThread thread1 = new threadsafeTestThread("1", in test_getHostName() local
150 thread1.start(); in test_getHostName()
155 thread1.join(); in test_getHostName()