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 …]
39 final CycleDetectingLock<String> lockA = in testSingletonThreadsRuntimeCircularDependency() local77 assertTrue(lockA.lockOrDetectPotentialLocksCycle().isEmpty()); in testSingletonThreadsRuntimeCircularDependency()80 lockA.unlock(); in testSingletonThreadsRuntimeCircularDependency()92 assertTrue(lockA.lockOrDetectPotentialLocksCycle().isEmpty()); in testSingletonThreadsRuntimeCircularDependency()93 lockA.unlock(); in testSingletonThreadsRuntimeCircularDependency()