Searched refs:thread2 (Results 1 – 3 of 3) sorted by relevance
102 Thread thread2 = new Thread(new ReadLockRunnable(lock)); in testGetQueuedReaderThreads() local108 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() local127 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()
61 MockThread thread2 = new MockThread(); in testGetSetThreadID_DifferentThread() local62 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()
140 threadsafeTestThread thread2 = new threadsafeTestThread("2", in test_getHostName() local151 thread2.start(); in test_getHostName()156 thread2.join(); in test_getHostName()