Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCycleDetectingLockFactoryTest.java62 lockA = factory.newReentrantLock("LockA"); in setUp()
63 lockB = factory.newReentrantLock("LockB"); in setUp()
64 lockC = factory.newReentrantLock("LockC"); in setUp()
80 lock1 = factory2.newReentrantLock(MyOrder.FIRST); in setUp()
81 lock2 = factory2.newReentrantLock(MyOrder.SECOND); in setUp()
82 lock3 = factory2.newReentrantLock(MyOrder.THIRD); in setUp()
86 lock01 = factory3.newReentrantLock(OtherOrder.FIRST); in setUp()
87 lock02 = factory3.newReentrantLock(OtherOrder.SECOND); in setUp()
88 lock03 = factory3.newReentrantLock(OtherOrder.THIRD); in setUp()
236 .newReentrantLock("MyLock"); in testExplicitOrdering_cycleWithUnorderedLock()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DCycleDetectingLockFactoryBenchmark.java49 detectingLocks[i] = factory.newReentrantLock("Lock" + i); in setUp()
58 lockAndUnlock(factory.newReentrantLock("foo"), reps); in unorderedCycleDetectingLocks()
/external/guava/guava/src/com/google/common/util/concurrent/
DCycleDetectingLockFactory.java252 public ReentrantLock newReentrantLock(String lockName) { in newReentrantLock() method in CycleDetectingLockFactory
253 return newReentrantLock(lockName, false); in newReentrantLock()
261 public ReentrantLock newReentrantLock(String lockName, boolean fair) { in newReentrantLock() method in CycleDetectingLockFactory
435 public ReentrantLock newReentrantLock(E rank) { in newReentrantLock() method in CycleDetectingLockFactory.WithExplicitOrdering
436 return newReentrantLock(rank, false); in newReentrantLock()
448 public ReentrantLock newReentrantLock(E rank, boolean fair) { in newReentrantLock() method in CycleDetectingLockFactory.WithExplicitOrdering