Home
last modified time | relevance | path

Searched refs:lockB (Results 1 – 2 of 2) sorted by relevance

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCycleDetectingLockFactoryTest.java42 private ReentrantLock lockB; field in CycleDetectingLockFactoryTest
63 lockB = factory.newReentrantLock("LockB"); in setUp()
103 lockB.lock(); in testDeadlock_twoLocks()
105 lockB.unlock(); in testDeadlock_twoLocks()
109 lockB.lock(); in testDeadlock_twoLocks()
129 lockB.unlock(); in testDeadlock_twoLocks()
137 lockB.lock(); in testDeadlock_threeLocks()
138 lockB.unlock(); in testDeadlock_threeLocks()
142 lockB.lock(); in testDeadlock_threeLocks()
144 lockB.unlock(); in testDeadlock_threeLocks()
[all …]
/external/guice/core/test/com/google/inject/internal/
DCycleDetectingLockTest.java63 final CycleDetectingLock<String> lockB = in testSingletonThreadsRuntimeCircularDependency() local
92 assertTrue(lockB.lockOrDetectPotentialLocksCycle().isEmpty()); in testSingletonThreadsRuntimeCircularDependency()
93 lockB.unlock(); in testSingletonThreadsRuntimeCircularDependency()
105 assertTrue(lockB.lockOrDetectPotentialLocksCycle().isEmpty()); in testSingletonThreadsRuntimeCircularDependency()
108 lockB.unlock(); in testSingletonThreadsRuntimeCircularDependency()
137 final CycleDetectingLock<String> lockB = factoryB.create("B"); in testCycleDetectingLockFactoriesDoNotDeadlock() local
148 boolean isEmpty = lockB.lockOrDetectPotentialLocksCycle().isEmpty(); in testCycleDetectingLockFactoriesDoNotDeadlock()
150 lockB.unlock(); in testCycleDetectingLockFactoriesDoNotDeadlock()
163 assertTrue(lockB.lockOrDetectPotentialLocksCycle().isEmpty()); in testCycleDetectingLockFactoriesDoNotDeadlock()
169 lockB.unlock(); in testCycleDetectingLockFactoriesDoNotDeadlock()
[all …]