Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java89 private String enterWhen() { in enterWhen() method in MonitorTestCase
143 thread1.callAndAssertReturns(enterWhen(), guard); in testEnterWhen_initiallyTrue()
148 thread1.callAndAssertWaits(enterWhen(), guard); in testEnterWhen_initiallyFalse()
152 thread1.assertPriorCallReturns(enterWhen()); in testEnterWhen_initiallyFalse()
158 thread1.callAndAssertBlocks(enterWhen(), guard); in testEnterWhen_alreadyOccupied()
160 thread1.assertPriorCallReturns(enterWhen()); in testEnterWhen_alreadyOccupied()
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DMonitorBasedArrayBlockingQueue.java270 monitor.enterWhen(notFull); in put()
292 if (monitor.enterWhen(notFull, timeout, unit)) { in offer()
321 monitor.enterWhen(notEmpty); in take()
332 if (monitor.enterWhen(notEmpty, timeout, unit)) { in poll()
DMonitorBasedPriorityBlockingQueue.java250 monitor.enterWhen(notEmpty); in take()
261 if (monitor.enterWhen(notEmpty, timeout, unit)) { in poll()
/external/guava/guava/src/com/google/common/util/concurrent/
DMonitor.java419 public void enterWhen(Guard guard) throws InterruptedException { in enterWhen() method in Monitor
471 public boolean enterWhen(Guard guard, long time, TimeUnit unit) throws InterruptedException { in enterWhen() method in Monitor