Searched refs:thread1 (Results 1 – 2 of 2) sorted by relevance
101 Thread thread1 = new Thread(new ReadLockRunnable(lock)); in testGetQueuedReaderThreads() local105 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() local124 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()
138 threadsafeTestThread thread1 = new threadsafeTestThread("1", in test_getHostName() local150 thread1.start(); in test_getHostName()155 thread1.join(); in test_getHostName()