Searched refs:lockA (Results 1 – 2 of 2) sorted by relevance
41 private ReentrantLock lockA; field in CycleDetectingLockFactoryTest62 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 …]
44 final CycleDetectingLock<String> lockA = in testSingletonThreadsRuntimeCircularDependency() local91 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() local146 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 …]