Home
last modified time | relevance | path

Searched refs:enterIf (Results 1 – 4 of 4) sorted by relevance

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java81 private String enterIf() { in enterIf() method in MonitorTestCase
165 thread1.callAndAssertReturns(true, enterIf(), guard); in testEnterIf_initiallyTrue()
171 thread1.callAndAssertReturns(false, enterIf(), guard); in testEnterIf_initiallyFalse()
178 thread1.callAndAssertBlocks(enterIf(), guard); in testEnterIf_alreadyOccupied()
180 thread1.assertPriorCallReturns(true, enterIf()); in testEnterIf_alreadyOccupied()
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DMonitorBasedArrayBlockingQueue.java247 if (monitor.enterIf(notFull)) { in offer()
307 if (monitor.enterIf(notEmpty)) { in poll()
346 if (monitor.enterIf(notEmpty)) { in peek()
/external/guava/guava/src/com/google/common/util/concurrent/
DAbstractService.java170 if (monitor.enterIf(isStartable)) {
189 if (monitor.enterIf(isStoppable)) {
DMonitor.java567 public boolean enterIf(Guard guard) { in enterIf() method in Monitor
613 public boolean enterIf(Guard guard, long time, TimeUnit unit) { in enterIf() method in Monitor