HomeSort by relevance Sort by last modified time
    Searched refs:lockB (Results 1 - 2 of 2) sorted by null

  /external/guava/guava-tests/test/com/google/common/util/concurrent/
CycleDetectingLockFactoryTest.java 42 private ReentrantLock lockB;
63 lockB = factory.newReentrantLock("LockB");
101 // Establish an acquisition order of lockA -> lockB.
103 lockB.lock();
105 lockB.unlock();
109 lockB.lock();
114 checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
123 checkMessage(expected, "LockB -> LockA", "LockA -> LockB")
    [all...]
  /external/guice/core/test/com/google/inject/internal/
CycleDetectingLockTest.java 63 final CycleDetectingLock<String> lockB =
92 assertTrue(lockB.lockOrDetectPotentialLocksCycle().isEmpty());
93 lockB.unlock();
105 assertTrue(lockB.lockOrDetectPotentialLocksCycle().isEmpty());
108 lockB.unlock();
137 final CycleDetectingLock<String> lockB = factoryB.create("B");
148 boolean isEmpty = lockB.lockOrDetectPotentialLocksCycle().isEmpty();
150 lockB.unlock();
163 assertTrue(lockB.lockOrDetectPotentialLocksCycle().isEmpty());
169 lockB.unlock()
    [all...]

Completed in 668 milliseconds