Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCycleDetectingLockFactoryTest.java41 private ReentrantLock lockA; field in CycleDetectingLockFactoryTest
62 lockA = factory.newReentrantLock("LockA"); in setUp()
102 lockA.lock(); in testDeadlock_twoLocks()
104 lockA.unlock(); in testDeadlock_twoLocks()
111 lockA.lock(); in testDeadlock_twoLocks()
120 lockA.lock(); in testDeadlock_twoLocks()
130 lockA.lock(); in testDeadlock_twoLocks()
136 lockA.lock(); in testDeadlock_threeLocks()
139 lockA.unlock(); in testDeadlock_threeLocks()
148 lockA.lock(); in testDeadlock_threeLocks()
[all …]
/external/guice/core/test/com/google/inject/internal/
DCycleDetectingLockTest.java44 final CycleDetectingLock<String> lockA = in testSingletonThreadsRuntimeCircularDependency() local
91 assertTrue(lockA.lockOrDetectPotentialLocksCycle().isEmpty()); in testSingletonThreadsRuntimeCircularDependency()
94 lockA.unlock(); in testSingletonThreadsRuntimeCircularDependency()
109 assertTrue(lockA.lockOrDetectPotentialLocksCycle().isEmpty()); in testSingletonThreadsRuntimeCircularDependency()
110 lockA.unlock(); in testSingletonThreadsRuntimeCircularDependency()
135 final CycleDetectingLock<String> lockA = factoryA.create("A"); in testCycleDetectingLockFactoriesDoNotDeadlock() local
146 assertTrue(lockA.lockOrDetectPotentialLocksCycle().isEmpty()); in testCycleDetectingLockFactoriesDoNotDeadlock()
152 lockA.unlock(); in testCycleDetectingLockFactoriesDoNotDeadlock()
165 boolean isEmpty = lockA.lockOrDetectPotentialLocksCycle().isEmpty(); in testCycleDetectingLockFactoriesDoNotDeadlock()
167 lockA.unlock(); in testCycleDetectingLockFactoriesDoNotDeadlock()
[all …]