Home
last modified time | relevance | path

Searched refs:lock2 (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/test/java/util/concurrent/tck/
DStampedLockTest.java652 final StampedLock lock2 = new StampedLock(); in testTimedLock_Timeout() local
653 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()
DReentrantLockTest.java679 final ReentrantLock lock2 = new ReentrantLock(fair); in testHasWaitersIAE() local
681 lock2.hasWaiters(c); in testHasWaitersIAE()
708 final ReentrantLock lock2 = new ReentrantLock(fair); in testGetWaitQueueLengthIAE() local
710 lock2.getWaitQueueLength(c); in testGetWaitQueueLengthIAE()
737 final PublicReentrantLock lock2 = new PublicReentrantLock(fair); in testGetWaitingThreadsIAE() local
739 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE()
DReentrantReadWriteLockTest.java1456 final ReentrantReadWriteLock lock2 = new ReentrantReadWriteLock(fair); in testHasWaitersIAE() local
1458 lock2.hasWaiters(c); in testHasWaitersIAE()
1485 final ReentrantReadWriteLock lock2 = new ReentrantReadWriteLock(fair); in testGetWaitQueueLengthIAE() local
1487 lock2.getWaitQueueLength(c); in testGetWaitQueueLengthIAE()
1515 final PublicReentrantReadWriteLock lock2 = in testGetWaitingThreadsIAE() local
1518 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE()
/libcore/jsr166-tests/src/test/java/jsr166/
DReentrantLockTest.java656 final ReentrantLock lock2 = new ReentrantLock(fair); in testHasWaitersIAE() local
658 lock2.hasWaiters(c); in testHasWaitersIAE()
685 final ReentrantLock lock2 = new ReentrantLock(fair); in testGetWaitQueueLengthIAE() local
687 lock2.getWaitQueueLength(c); in testGetWaitQueueLengthIAE()
714 final PublicReentrantLock lock2 = new PublicReentrantLock(fair); in testGetWaitingThreadsIAE() local
716 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE()
DReentrantReadWriteLockTest.java1436 final ReentrantReadWriteLock lock2 = new ReentrantReadWriteLock(fair); in testHasWaitersIAE() local
1438 lock2.hasWaiters(c); in testHasWaitersIAE()
1465 final ReentrantReadWriteLock lock2 = new ReentrantReadWriteLock(fair); in testGetWaitQueueLengthIAE() local
1467 lock2.getWaitQueueLength(c); in testGetWaitQueueLengthIAE()
1495 final PublicReentrantReadWriteLock lock2 = in testGetWaitingThreadsIAE() local
1498 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE()