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 …]
63 final CycleDetectingLock<String> lockB = in testSingletonThreadsRuntimeCircularDependency() local92 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() local148 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 …]