Searched refs:lock2 (Results 1 – 5 of 5) sorted by relevance
652 final StampedLock lock2 = new StampedLock(); in testTimedLock_Timeout() local653 long stamp2 = lock2.readLock(); in testTimedLock_Timeout()654 assertEquals(0L, lock2.tryWriteLock(0L, DAYS)); in testTimedLock_Timeout()655 assertEquals(0L, lock2.tryWriteLock(Long.MIN_VALUE, DAYS)); in testTimedLock_Timeout()656 assertFalse(lock2.asWriteLock().tryLock(0L, DAYS)); in testTimedLock_Timeout()657 assertFalse(lock2.asWriteLock().tryLock(Long.MIN_VALUE, DAYS)); in testTimedLock_Timeout()662 assertEquals(0L, lock2.tryWriteLock(timeoutMillis(), MILLISECONDS)); in testTimedLock_Timeout()670 releaseReadLock(lock2, stamp2); in testTimedLock_Timeout()
679 final ReentrantLock lock2 = new ReentrantLock(fair); in testHasWaitersIAE() local681 lock2.hasWaiters(c); in testHasWaitersIAE()708 final ReentrantLock lock2 = new ReentrantLock(fair); in testGetWaitQueueLengthIAE() local710 lock2.getWaitQueueLength(c); in testGetWaitQueueLengthIAE()737 final PublicReentrantLock lock2 = new PublicReentrantLock(fair); in testGetWaitingThreadsIAE() local739 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE()
1456 final ReentrantReadWriteLock lock2 = new ReentrantReadWriteLock(fair); in testHasWaitersIAE() local1458 lock2.hasWaiters(c); in testHasWaitersIAE()1485 final ReentrantReadWriteLock lock2 = new ReentrantReadWriteLock(fair); in testGetWaitQueueLengthIAE() local1487 lock2.getWaitQueueLength(c); in testGetWaitQueueLengthIAE()1515 final PublicReentrantReadWriteLock lock2 = in testGetWaitingThreadsIAE() local1518 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE()
656 final ReentrantLock lock2 = new ReentrantLock(fair); in testHasWaitersIAE() local658 lock2.hasWaiters(c); in testHasWaitersIAE()685 final ReentrantLock lock2 = new ReentrantLock(fair); in testGetWaitQueueLengthIAE() local687 lock2.getWaitQueueLength(c); in testGetWaitQueueLengthIAE()714 final PublicReentrantLock lock2 = new PublicReentrantLock(fair); in testGetWaitingThreadsIAE() local716 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE()
1436 final ReentrantReadWriteLock lock2 = new ReentrantReadWriteLock(fair); in testHasWaitersIAE() local1438 lock2.hasWaiters(c); in testHasWaitersIAE()1465 final ReentrantReadWriteLock lock2 = new ReentrantReadWriteLock(fair); in testGetWaitQueueLengthIAE() local1467 lock2.getWaitQueueLength(c); in testGetWaitQueueLengthIAE()1495 final PublicReentrantReadWriteLock lock2 = in testGetWaitingThreadsIAE() local1498 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE()