Searched refs:lockB (Results 1 – 2 of 2) sorted by relevance
42 private ReentrantLock lockB; field in CycleDetectingLockFactoryTest63 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 …]
55 final CycleDetectingLock<String> lockB = in testSingletonThreadsRuntimeCircularDependency() local78 assertTrue(lockB.lockOrDetectPotentialLocksCycle().isEmpty()); in testSingletonThreadsRuntimeCircularDependency()79 lockB.unlock(); in testSingletonThreadsRuntimeCircularDependency()88 assertTrue(lockB.lockOrDetectPotentialLocksCycle().isEmpty()); in testSingletonThreadsRuntimeCircularDependency()91 lockB.unlock(); in testSingletonThreadsRuntimeCircularDependency()