Home
last modified time | relevance | path

Searched refs:drainPermits (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DSemaphore.java215 final int drainPermits() { in drainPermits() method in Semaphore.Sync
638 public int drainPermits() { in drainPermits() method in Semaphore
639 return sync.drainPermits(); in drainPermits()
/libcore/jsr166-tests/src/test/java/jsr166/
DSemaphoreTest.java398 assertEquals(0, s.drainPermits()); in testDrainPermits()
401 assertEquals(10, s.drainPermits()); in testDrainPermits()
403 assertEquals(0, s.drainPermits()); in testDrainPermits()