- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testDeadlock_twoLocks (0.08 sec)
-
guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
Class<E> enumClass, Policy policy) { return new CycleDetectingLockFactory.WithExplicitOrdering<E>( policy, CycleDetectingLockFactory.createNodes(enumClass)); } public void testDeadlock_twoLocks() { // Establish an acquisition order of lockA -> lockB. lockA.lock(); lockB.lock(); lockA.unlock(); lockB.unlock(); // The opposite order should fail (Policies.THROW).
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
Class<E> enumClass, Policy policy) { return new CycleDetectingLockFactory.WithExplicitOrdering<E>( policy, CycleDetectingLockFactory.createNodes(enumClass)); } public void testDeadlock_twoLocks() { // Establish an acquisition order of lockA -> lockB. lockA.lock(); lockB.lock(); lockA.unlock(); lockB.unlock(); // The opposite order should fail (Policies.THROW).
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.1K bytes - Viewed (0)