Home
last modified time | relevance | path

Searched refs:thread2 (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DReentrantReadWriteLockTest.java102 Thread thread2 = new Thread(new ReadLockRunnable(lock)); in testGetQueuedReaderThreads() local
108 thread2.start(); in testGetQueuedReaderThreads()
109 waitForQueuedThread(lock, thread2); in testGetQueuedReaderThreads()
110 assertTrue(lock.getQueuedReaderThreads().contains(thread2)); in testGetQueuedReaderThreads()
113 TestUtils.joinThreadOrFail(2000, thread2); in testGetQueuedReaderThreads()
121 Thread thread2 = new Thread(new WriteLockRunnable(lock)); in testGetQueuedWriterThreads() local
127 thread2.start(); in testGetQueuedWriterThreads()
128 waitForQueuedThread(lock, thread2); in testGetQueuedWriterThreads()
129 assertTrue(lock.getQueuedWriterThreads().contains(thread2)); in testGetQueuedWriterThreads()
132 TestUtils.joinThreadOrFail(2000, thread2); in testGetQueuedWriterThreads()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldLogRecordTest.java61 MockThread thread2 = new MockThread(); in testGetSetThreadID_DifferentThread() local
62 thread2.start(); in testGetSetThreadID_DifferentThread()
64 thread2.join(); in testGetSetThreadID_DifferentThread()
71 assertTrue(lr.getThreadID() != thread2.lr.getThreadID()); in testGetSetThreadID_DifferentThread()
72 assertTrue(thread.lr.getThreadID() != thread2.lr.getThreadID()); in testGetSetThreadID_DifferentThread()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInetAddressThreadTest.java140 threadsafeTestThread thread2 = new threadsafeTestThread("2", in test_getHostName() local
151 thread2.start(); in test_getHostName()
156 thread2.join(); in test_getHostName()